All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: selinux@tycho.nsa.gov
Subject: Re: Groups in the alternative user solution
Date: Tue, 05 Jul 2005 15:15:11 -0400	[thread overview]
Message-ID: <42CADC3F.8000206@redhat.com> (raw)
In-Reply-To: <20050630191417.26186.qmail@web31611.mail.mud.yahoo.com>

Ok we are actually  trying to code something up to deal with this 
discussion.  This is our current thoughts on
handling users.  We have not come to a decent way of handling 
file_contexts.    We are attempting in this
example to limit the number of file_context/user files.

Example policy for a hospital would have 5 types of SELinux users.

cat /etc/selinux/strict/users/local.users
user doctor_u { user_r nurse_r labtech_r doctor_r };
user labtech_u { user_r labtech_r };
user nurse_u { user_r nurse_r };
user user_u { user_r };
user staff_u { staff_r sysadm_r secadm_r };


Then we create a file called map.users

cat /etc/selinux/strict/users/map.users
staff_u: dwalsh,ivan
doctor_u: green,welby,spock
nurse_u: cratchet,nightengale
labtech_u: grissom
user_u:  *


As far as file_context files are concerned, only dwalsh and ivan would 
need to
have user specific file_context.homedir files be created, since all 
other users
on the system would map to the "user" type.

Some how we need to make the system smart enough to know that SELINUX 
Users map
to a default role/type;

So when "grissom" logs in his id -Z will show

labtech_u:user_r:user_t

He then can:

newrole -r labtech_r

And can run labtech applications.

Dr. Green would login as

doctor_u:user_r:user_t

He could then run newrole and change to any of doctor_r, nurse_r, or 
labtech_r
and run the associated applications.

The only time home directory file context would need to change would be 
if the
user became an admin.

This would potentially eliminate the 1000's of file contexts files problem,
since almost all users would map to the default user_r and user_home_t...
for his home dir file context.



-- 



--
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.

  reply	other threads:[~2005-07-05 19:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-28 17:34 Groups in the alternative user solution Ivan Gyurdiev
2005-06-28 19:44 ` Stephen Smalley
2005-06-28 19:50   ` Ivan Gyurdiev
2005-06-29 14:35     ` Stephen Smalley
2005-06-29 15:05       ` Ivan Gyurdiev
2005-06-29 15:38         ` Stephen Smalley
2005-06-30 13:27           ` Ivan Gyurdiev
2005-06-30 13:46             ` Stephen Smalley
2005-06-30 15:54               ` Casey Schaufler
2005-06-30 16:06                 ` Ivan Gyurdiev
2005-06-30 19:14                   ` Casey Schaufler
2005-07-05 19:15                     ` Daniel J Walsh [this message]
2005-07-05 19:33                       ` Colin Walters
2005-07-05 19:40                         ` Daniel J Walsh
2005-07-05 20:01                           ` Karl MacMillan
2005-07-05 20:19                             ` Daniel J Walsh
2005-07-05 20:22                             ` Ivan Gyurdiev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42CADC3F.8000206@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.