All of lore.kernel.org
 help / color / mirror / Atom feed
* SELinux user root
@ 2007-07-08  8:35 Stefan Schulze Frielinghaus
  2007-07-09 18:07 ` Stephen Smalley
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Schulze Frielinghaus @ 2007-07-08  8:35 UTC (permalink / raw)
  To: SELinux List

Like from the RHEL4 manuel (http://www.redhat.com/docs/manuals/ 
enterprise/RHEL-4-Manual/selinux-guide/rhlcommon-section-0038.html)  
the SELinux user root exists only for legacy reasons:

# root is retained as a separate user identity simply as a
# compatibility measure with the "strict" policy.  It could
# be dropped and mapped to user_u but this allows existing
# file contexts that have "root" as the user identity to
# remain valid.

   user root roles { user_r sysadm_r system_r };

But if I try to modify the login context of root to use user_u I get  
the following error:

$ semanage login -m -s user_u root

libsemanage.validate_handler: MLS range s0-s15:c0.c1023 for Unix user  
root exceeds allowed range s0 for SELinux user user_u
libsemanage.validate_handler: seuser mapping [root -> (user_u, s0- 
s15:c0.c1023)] is invalid
libsemanage.dbase_llist_iterate: could not iterate over records
/usr/sbin/semanage: Could not modify login mapping for root

I'm not really sure how to interprete this message. I would guess  
it's because user_u has only a valid MLS range SystemLow and root has  
a SystemLow-SystemHigh range. But why could this be a problem?

The system I'm testing this is a CentOS5 with a MLS policy installed.


cheers,
Stefan

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

end of thread, other threads:[~2007-07-11 12:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-08  8:35 SELinux user root Stefan Schulze Frielinghaus
2007-07-09 18:07 ` Stephen Smalley
2007-07-10  8:17   ` Stefan Schulze Frielinghaus
2007-07-10  9:17     ` Ken YANG
2007-07-10 13:10     ` Stephen Smalley
2007-07-11 12:52       ` Stefan Schulze Frielinghaus

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.