* sys_admin cap breakup
@ 2004-04-12 2:34 Joshua Brindle
2004-04-12 12:58 ` Colin Walters
0 siblings, 1 reply; 3+ messages in thread
From: Joshua Brindle @ 2004-04-12 2:34 UTC (permalink / raw)
To: SELinux
Russel brought up a good point on that audio-entropyd policy, adding to
the random pool requires sys_admin cap, here is the relavent line in
random.c
case RNDADDENTROPY:
if (!capable(CAP_SYS_ADMIN))
return -EPERM
around line 1768
So this is a question for the guys that are doing kernel work and
possibly interacting with linus and friends. How plausible would it be
to suggest breaking up caps that give lots of access in the next major
version, 2.7 or 2.8? do you think they'd go for it?
it would mean a major change in just about every security system
developed for linux but the payoff could be very good.. just as a
reference where are the other things sys_admin grants, as you can see
the potential for something with sys_admin access to damage the system
is great..
CAP_SYS_ADMIN
Allow configuration of the secure attention key;
Allow administration of the random device;
Allow examination and configuration of disk quotas;
Allow configuring the kernel's syslog (printk behaviour);
Allow setting the domainname;
Allow setting the hostname;
Allow calling bdflush();
Allow mount() and umount(), setting up new smb connection;
Allow some autofs root ioctls;
Allow nfsservctl; Allow VM86_REQUEST_IRQ;
Allow to read/write pci config on alpha; Allow irix_prctl on mips
(setstacksize);
Allow flushing all cache on m68k (sys_cacheflush);
Allow removing semaphores; Used instead of CAP_CHOWN to "chown" IPC
message queues, semaphores and shared memory;
Allow locking/unlocking of shared memory segment;
Allow turning swap on/off;
Allow forged pids on socket credentials passing;
Allow setting readahead and flushing buffers on block devices;
Allow setting geometry in floppy driver;
Allow turning DMA on/off in xd driver;
Allow administration of md devices (mostly the above, but some extra
ioctls);
Allow tuning the ide driver;
Allow access to the nvram device;
Allow administration of apm_bios, serial and bttv (TV) device;
Allow manufacturer commands in isdn CAPI support driver;
Allow reading nonstandardized portions of pci configuration space;
Allow DDI debug ioctl on sbpcd driver;
Allow setting up serial ports;
Allow sending raw qic117 commands;
Allow enabling/disabling tagged queuing on SCSI controllers and sending
arbitrary SCSI commands;
Allow setting encryption key on loopback filesystem.
Joshua Brindle
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: sys_admin cap breakup
2004-04-12 2:34 sys_admin cap breakup Joshua Brindle
@ 2004-04-12 12:58 ` Colin Walters
2004-04-12 15:42 ` Stephen Smalley
0 siblings, 1 reply; 3+ messages in thread
From: Colin Walters @ 2004-04-12 12:58 UTC (permalink / raw)
To: SELinux
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
On Sun, 2004-04-11 at 22:34, Joshua Brindle wrote:
> So this is a question for the guys that are doing kernel work and
> possibly interacting with linus and friends. How plausible would it be
> to suggest breaking up caps that give lots of access in the next major
> version, 2.7 or 2.8? do you think they'd go for it?
Maybe a better solution is to simply stop using capabilities entirely,
and make the necessary changes to the policy.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sys_admin cap breakup
2004-04-12 12:58 ` Colin Walters
@ 2004-04-12 15:42 ` Stephen Smalley
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Smalley @ 2004-04-12 15:42 UTC (permalink / raw)
To: Colin Walters; +Cc: SELinux
On Mon, 2004-04-12 at 08:58, Colin Walters wrote:
> On Sun, 2004-04-11 at 22:34, Joshua Brindle wrote:
>
> > So this is a question for the guys that are doing kernel work and
> > possibly interacting with linus and friends. How plausible would it be
> > to suggest breaking up caps that give lots of access in the next major
> > version, 2.7 or 2.8? do you think they'd go for it?
>
> Maybe a better solution is to simply stop using capabilities entirely,
> and make the necessary changes to the policy.
Yes, although this still requires adding a LSM hook to abstract the new
security check and defining new classes and permissions as appropriate
for SELinux. SELinux should eventually replace capabilities entirely
and provide complete privilege management using RBAC/TE.
--
Stephen Smalley <sds@epoch.ncsc.mil>
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-04-12 15:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-12 2:34 sys_admin cap breakup Joshua Brindle
2004-04-12 12:58 ` Colin Walters
2004-04-12 15:42 ` Stephen Smalley
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.