All of lore.kernel.org
 help / color / mirror / Atom feed
* Alternative user management approach
@ 2005-06-24 16:02 Karl MacMillan
  2005-06-24 16:38 ` Casey Schaufler
                   ` (3 more replies)
  0 siblings, 4 replies; 46+ messages in thread
From: Karl MacMillan @ 2005-06-24 16:02 UTC (permalink / raw)
  To: selinux

We've been kicking around the best way to handle users in the future here at
Tresys and have an alternative suggestion.

This starts with some basic assertions:
1) Reloading the kernel policy on user change just seems . . . wrong.
2) Having the users in the kernel can be problematic for large numbers of users.
3) These problems get much worse if we are talking about large, distributed user
databases. Are sites with 10,000 users going to force a policy reload on every
machine every time a user is added? Are all 10,000 users going to be stored in
the kernel?

We have a partial solution to this already with the concept of a generic user
(user_u). Our suggestion is to expand this concept to have multiple generalized
users with rich mappings from Linux users to SELinux users. This would mean that
specific users would no longer be a part of the SELinux policy, removing the
need for libsepol changes.

This makes the SELinux user more what we are calling a 'user role'. For example,
the policy could create 3 user roles with different role authorizations (which
become 'role capabilities'):

user role		role capabilities
------------------------------------
normal		user_r
staff			staff_r sysadm_r
sysadm		sysadm_r

Normal Linux users are then mapped to user roles by username or group membership
(this should be done by libselinux and not involve the kernel). For example, if
the primary group of the user is wheel then they could be assigned to staff,
root assigned to sysadm, and everyone else to normal. This makes the addition of
a user roughly equivalent to adding roles - something done by a policy developer
that does not need to be done as part of normal system administration.

In the future, this can be greatly expanded in the reference policy with more
fine-grained role capabilities. For example:

user role		role capabilities
-----------------------------------
normal		user_r
staff			staff_r webadmin_r logadmin_r genadmin_r
secadmin		staff_r genadmin_r secadmin_r
sysadm		webadmin_r logadmin_r genadmin_r

Questions/Thoughts?

Karl

---
Karl MacMillan
Tresys Technology
http://www.tresys.com
(410) 290-1411 ext 134 




--
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] 46+ messages in thread
* RE: Alternative user management approach
@ 2005-06-28 14:43 Chad Hanson
  0 siblings, 0 replies; 46+ messages in thread
From: Chad Hanson @ 2005-06-28 14:43 UTC (permalink / raw)
  To: Frank Mayer, russell, 'Casey Schaufler'; +Cc: selinux


First, I would like to state a method for limiting the need to reload the
policy and make it work in a distributed environment is certainly needed.

> 
> The problem is building a general mechanism that can handle nearly any
> situation. I agree that over the past 20+ years, most MLS applications
I've
> seen use a small portion of the possible lattice supported. 

It is true that a small subset of labels are used in a number of
environments, there are special cases where people create and use dynamic
labels on the fly thus utilizing a large number of categories.


> However they use differing portions. And some applications, in particular 
> compartmented mode applications, can use many categories with the
potential for 
> a large number of points in the lattice being assigned to specific users. 
> Worse users can be granted and removed access to lattice points (i.e., 
> categories) now and then. 
> 

It is very true that different user's will have different clearances.
Depending on the number of levels (usually a couple) and categories (can
vary from a few to many) you could require alot of different combinations. 

Another factor in the potential increase of mappings would the increased use
of roles. Currently, their use is very limited, but if you increase the
roles to allow users to perform different actions, you increase the number
of combinations as well. 

-Chad

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

end of thread, other threads:[~2005-06-28 15:24 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-24 16:02 Alternative user management approach Karl MacMillan
2005-06-24 16:38 ` Casey Schaufler
2005-06-24 17:04   ` Karl MacMillan
2005-06-24 17:25     ` Casey Schaufler
2005-06-24 17:30       ` Karl MacMillan
2005-06-24 19:34     ` Stephen Smalley
2005-06-24 18:09 ` Brian T. Sniffen
2005-06-24 18:21   ` Stephen Smalley
2005-06-24 19:50     ` James Morris
2005-06-24 19:58       ` Stephen Smalley
2005-06-24 23:23         ` James Morris
2005-06-26 16:13       ` Russell Coker
2005-06-24 18:32   ` Ivan Gyurdiev
2005-06-24 18:41     ` Karl MacMillan
2005-06-24 22:11       ` Valdis.Kletnieks
2005-06-24 22:52         ` Casey Schaufler
2005-06-25 10:28           ` Daniel J Walsh
2005-06-25 15:37             ` Joshua Brindle
2005-06-25 16:34               ` Casey Schaufler
2005-06-25 19:37               ` Ivan Gyurdiev
2005-06-25 19:49                 ` Ivan Gyurdiev
2005-06-26 16:38                 ` Russell Coker
2005-06-26 20:17                   ` Ivan Gyurdiev
2005-06-25 20:02               ` Daniel J Walsh
2005-06-27 14:59                 ` Joshua Brindle
2005-06-26 16:36             ` Russell Coker
2005-06-26 17:46               ` Casey Schaufler
2005-06-27  2:24                 ` Russell Coker
2005-06-27  2:43                   ` Casey Schaufler
2005-06-27  3:43                     ` Russell Coker
2005-06-27 15:32                       ` Casey Schaufler
2005-06-27 22:32                         ` Russell Coker
2005-06-28 12:44                           ` Frank Mayer
2005-06-28 15:24                             ` Casey Schaufler
2005-06-26 16:11       ` Russell Coker
2005-06-24 18:10 ` Ivan Gyurdiev
2005-06-24 18:29   ` Ivan Gyurdiev
2005-06-24 18:36     ` Karl MacMillan
2005-06-24 18:52       ` Ivan Gyurdiev
2005-06-24 19:23         ` Stephen Smalley
2005-06-24 19:01       ` Stephen Smalley
2005-06-24 19:21         ` Ivan Gyurdiev
2005-06-24 19:40           ` Stephen Smalley
2005-06-24 18:19 ` Stephen Smalley
2005-06-24 18:38   ` Karl MacMillan
  -- strict thread matches above, loose matches on Subject: below --
2005-06-28 14:43 Chad Hanson

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.