Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Extending sudo with capability limiting?

 
   Soft32 Home -> Linux -> Security RSS
Next:  ulimit  
Author Message
Wayne

External


Since: Nov 05, 2007
Posts: 9



(Msg. 1) Posted: Tue Nov 13, 2007 3:11 pm
Post subject: Extending sudo with capability limiting?
Archived from groups: comp>os>linux>security (more info?)

I've been reading a bit on Red Hat's PolicyKit, and
it got me thinking about sudo. The article I read
points out that if sudo decides to allow a user to
run some program, it runs that program as root.
This violates the principle of granting the least
privilege.

Linux Solaris, and other Unixes all support the
breakup of rootly power into a dozen or more
"capabilities" or "privileges". That is fine
except it depends on the application to drop
the excess privileges.

So please tell me if this is a good idea, or if
I'm just short of sleep and spouting nonsense:

I wonder if sudo could be extended to allow
an administrator to list the privileges/capabilities
to be granted. The sudo process could then
drop un-need privilege (all non-listed ones) before
fork/exec-ing the program. That means a virus
infected program run with sudo won't have excess
privilege.

I realize POSIX hasn't standardized a list of capabilities
or privileges (maybe they could standardize the
name Smile, except for the withdrawn draft of 1003.1e,
so the specific privileges/capabilities
allowed are OS specific. To deal with that, the list
could be optional in the sense that if a listed
privilege/capability isn't supported, it isn't
granted (silently). So a system admin could list
all the Linux, Solaris, ... ones to grant, and the
ones listed that don't apply to the current OS are
ignored. This would still allow a single
organization-wide sudoers file to be deployed on
different OSes.

Example sudoers entry:

Joe localhost = [CAP_CHOWN, PRIV_FILE_CHOWN] /bin/chown /var/www/*
^^^^^^^^^^^^^^^^^^^^^^^^^^^
(CAP_CHOWN is Linux/IEEE-1003.1e, PRIV_FILE_CHOWN is for Solaris.)

-Wayne
Back to top
Login to vote
Display posts from previous:   
Related Topics:
NIS+PAM+SSH+Firewalling.....all in the mix - I've encountered an issue in trying to setup an iptables firewall (shorewall) on a debian etch server (hostname zeus).....

problem with sftp rpm - Hi all I downloaded 'sftp-0.9.9-4.src.rpm' and when I run the command "rpm -ivh sftp-0.9.9-4.src.rpm", it giv...

Extending partition to another drive Suse8.2 - I have a workaround for backing up some data but I was wondering if it's possible to extend a partition onto another..

Extending boot protocol & bzImage for paravirt_ops - Well, it seems to be about time to have this conversation again. A rough overview of the previous thread and..

extending swap space logical volume. - Hello Group I have extend the Logical volume which is used for swap. But I still see that file system has not claime...

[patch 0/1] extending low-level markers - Mathieu I have been working with your Kernel Markers infrastructure now for some time and have run into an..
       Soft32 Home -> Linux -> Security All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]