All of lore.kernel.org
 help / color / mirror / Atom feed
* Bug in the semanage user management code or genhomedircon?
@ 2006-03-16 20:45 Thomas Bleher
  2006-03-16 22:02 ` Ivan Gyurdiev
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Bleher @ 2006-03-16 20:45 UTC (permalink / raw)
  To: SELinux ML

I'm trying to set up an Ubuntu SELinux system and have a problem I don't
really understand. The system is up-to-date (just compiled all the
libraries from the new release, the policy is two days old).

I think the following command sequence illustrates my problem:
# ls -dZ /root
drwxr-xr-x  root     root     system_u:object_r:default_t:s0   /root
# semanage login -l

Login Name                SELinux User              MLS/MCS Range

# semanage user -l

                MLS/       MLS/
SELinux User    MCS Level  MCS Range                      SELinux Roles

root            s0         s0-s0:c0.c255                  system_r sysadm_r staff_r
staff_u         s0         s0-s0:c0.c255                  sysadm_r staff_r
sysadm_u        s0         s0-s0:c0.c255                  sysadm_r
system_u        s0         s0-s0:c0.c255                  system_r
user_u          s0         s0                             user_r
# semanage login -a -s sysadm_u root
root@warschau:~/debian# semanage login -l

Login Name                SELinux User              MLS/MCS Range

root                      sysadm_u                  s0
# restorecon -v /root/
restorecon reset /root context system_u:object_r:default_t:s0->sysadm_u:object_r:user_home_dir_t:s0

Notice the last line. I cannot get /root to be of type
sysadm_home_dir_t (It doesn't change if I do "semanage login -a -s
root root" instead).

What am I doing wrong?

Thomas

PS: The semanage manpage really needs some examples. Now if I understood
the program I could write some :-(


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

end of thread, other threads:[~2006-03-17 12:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-16 20:45 Bug in the semanage user management code or genhomedircon? Thomas Bleher
2006-03-16 22:02 ` Ivan Gyurdiev
2006-03-17  7:11   ` Thomas Bleher
2006-03-17 12:46     ` Stephen Smalley

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.