All of lore.kernel.org
 help / color / mirror / Atom feed
* Sudo Changes for SELinux
@ 2008-01-09 16:01 Daniel J Walsh
  2008-01-09 17:51 ` Todd Miller
  0 siblings, 1 reply; 28+ messages in thread
From: Daniel J Walsh @ 2008-01-09 16:01 UTC (permalink / raw)
  To: Todd Miller, SE Linux

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a working demonstration of  My version of RBAC in Rawhide/FC8.
In my view of the world, users have two roles.  User Role and Admin Role.

So I might login as a staff_t user and be able to transition to
webadm_r:webadm_r.

In Rawhide right now staff_t can only run sudo to become root.
Staff_t is not allowed to execute su.  staff_t users should not know the
root password. I have hacked up a script /usr/bin/webadm which executes
newrole -r webadm_r -t webadm_t and newrole's pam has pam_rootok.

Now I edit the /etc/sudoers and allow

dwalsh ALL=(ALL) /usr/bin/webadm

This allows me to use sudo to become webadm_t as root.  (Policy
obviously has to be correct.  But this is very cumbersome for the
administrator and does not scale.

I think we need to add SELinux support to sudo, so the administrator
could easily add something to /etc/sodoers like

dwalsh ALL=(ALL) ROLE=webadm_r TYPE=webadm_t /bin/sh

then sudo would execute the code that newrole does to very the
transition and

setexeccon(dwalsh:webadm_t:webadm_t)
exec(/bin/sh)

I was told that you are the upstream maintainer of sudo, so I wanted
your input/help on making sudo selinux aware.

Dan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkeE7+cACgkQrlYvE4MpobMFuACghnhJJpGMkCN5nZE5vlb/O+2H
auIAoOXNJ0rWvALJAt8Y8kLPBwkVQD8f
=OnRG
-----END PGP SIGNATURE-----

--
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] 28+ messages in thread

end of thread, other threads:[~2008-02-19 19:47 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-09 16:01 Sudo Changes for SELinux Daniel J Walsh
2008-01-09 17:51 ` Todd Miller
2008-01-09 18:23   ` Stephen Smalley
2008-01-10 19:23     ` Daniel J Walsh
2008-01-10 20:01       ` Stefan Schulze Frielinghaus
2008-01-11 14:37         ` Daniel J Walsh
2008-01-11 15:32           ` Stephen Smalley
2008-01-11 15:38             ` Stephen Smalley
2008-01-11 16:45               ` Daniel J Walsh
2008-01-11 19:10               ` Daniel J Walsh
2008-01-30 14:52                 ` Resend: " Daniel J Walsh
2008-01-31  0:35                   ` Accurately setting Security Context of a user when ssh-ing in Hasan Rezaul-CHR010
2008-01-31  0:30                     ` Dave Quigley
2008-02-05  0:44                       ` Hasan Rezaul-CHR010
2008-02-05 13:01                         ` Stephen Smalley
2008-02-07  4:13                           ` Hasan Rezaul-CHR010
2008-02-07 14:16                             ` Stephen Smalley
     [not found]                               ` <D06FE0A2807BC145B0D38744789D4F5D045B7963@de01exm68.ds.mot.com>
     [not found]                                 ` <1202842666.24250.112.camel@moss-spartans.epoch.ncsc.mil>
2008-02-12 23:01                                   ` Hasan Rezaul-CHR010
2008-02-13 14:38                                     ` Stephen Smalley
2008-02-13 20:02                                       ` Hasan Rezaul-CHR010
2008-02-13 20:23                                         ` Stephen Smalley
2008-02-14 15:05                                           ` Stephen Smalley
2008-02-06 14:59                   ` Resend: Sudo Changes for SELinux Todd Miller
2008-02-06 15:28                     ` Daniel J Walsh
2008-02-07 17:03                       ` Todd Miller
2008-02-07 17:20                         ` Daniel J Walsh
2008-02-07 17:51                           ` Todd Miller
2008-02-19 19:47                             ` Daniel J Walsh

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.