All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Domain transition
@ 2002-12-17 12:52 Justin Smith
  2002-12-17 15:32 ` Russell Coker
  0 siblings, 1 reply; 11+ messages in thread
From: Justin Smith @ 2002-12-17 12:52 UTC (permalink / raw)
  To: SELinux

I think domain transition is one of the key security features of
SELinux:

The one domain with high privileges similar to the old root privileges
is the initrc_t domain. But transitions cause this domain to "cease to
exist" by the time Linux has completely booted.
--



--
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] 11+ messages in thread
* Re: Domain transition
@ 2002-12-16 21:25 Stephen D. Smalley
  2002-12-16 22:07 ` Russell Coker
  0 siblings, 1 reply; 11+ messages in thread
From: Stephen D. Smalley @ 2002-12-16 21:25 UTC (permalink / raw)
  To: SELinux, rmayo


> 1)    What is "domain transition"?  I've configured my system such that it
> doesn't happen, but I'm wondering if it's the best way to go.

Read the Configuring the SELinux Policy report, available in the
distribution (selinux/doc/policy) or from the NSA SELinux web site.
You might also want to read a background paper on Type Enforcement (TE).

A domain is a security attribute associated with a process.  Processes with the 
same domain have the same set of permissions to the same set of objects. A 
domain transition occurs when a process changes its domain, conventionally by 
executing a program with a particular entrypoint type.  Domain transitions 
provide a controlled mechanism for changes in permissions, whether to gain 
permissions, shed permissions, or switch to a completely orthogonal set of 
permissions.  I doubt that you really configured away domain transitions. If you 
did, you might as well not use SELinux.

> 2)    Is there a text file on my system with the list of user roles or is
> that information stored some other way?

In the source distribution's selinux tree, the policy/users file specifies the 
set of roles authorized for each user.  Obtaining the full set of defined roles
is not entirely straightforward because role declarations are now distributed
among the domain .te files.  Roles for user processes are typically defined
in policy/domains/user.te or policy/domains/admin.te.  You may want to look at 
the Tresys policy tools as a way of more easily viewing the policy or managing 
users.

In an installed form, the policy sources are typically placed into 
/etc/security/selinux/src/policy.

> 3)    Can I configure the operating system NOT to ask for a user role on
> login?  I would much prefer to have user role determined BY the login.

The user will be limited to the roles authorized for that user in
policy/users.  If you authorize the user for multiple roles, then he
can choose one of those roles at login time or subsequently via newrole.
What's the point of limiting the user to a single role at login time if he can 
change it subsequently via newrole?  Of course, you could limit login
to transition to a single user domain if you want to force all users to
initially login with a certain role/domain.

--
Stephen Smalley, NSA
sds@epoch.ncsc.mil


--
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] 11+ messages in thread
* Domain transition
@ 2002-12-16 20:09 Richard Mayo
  2002-12-16 20:46 ` Tom
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Mayo @ 2002-12-16 20:09 UTC (permalink / raw)
  To: SELinux

I have a few questions, and I hope you good folks can help me out:


1)    What is "domain transition"?  I've configured my system such that it
doesn't happen, but I'm wondering if it's the best way to go.
2)    Is there a text file on my system with the list of user roles or is
that information stored some other way?
3)    Can I configure the operating system NOT to ask for a user role on
login?  I would much prefer to have user role determined BY the login.

I'm sure I'll have others, but I can't think of anything at this time.



R.



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

end of thread, other threads:[~2002-12-17 22:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-17 12:52 Domain transition Justin Smith
2002-12-17 15:32 ` Russell Coker
  -- strict thread matches above, loose matches on Subject: below --
2002-12-16 21:25 Stephen D. Smalley
2002-12-16 22:07 ` Russell Coker
2002-12-16 23:11   ` Brian May
2002-12-17  9:19     ` Russell Coker
2002-12-17 11:42       ` Brian May
2002-12-17 13:31         ` Russell Coker
2002-12-17 22:16           ` Brian May
2002-12-16 20:09 Richard Mayo
2002-12-16 20:46 ` Tom

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.