Security Enhanced Linux
What's New
Frequently Asked Questions
Background
Documents
License
Download
Participating
Mail List
Archives
Remaining Work
Contributors
Related Work
Press Releases
Information Assurance Research
NIARL In-house Research Areas
Mathematical Sciences Program
Sabbaticals
Computer & Information Sciences Research
Technology Transfer
Advanced Computing
Advanced Mathematics
Communications & Networking
Information Processing
Microelectronics
Other Technologies
Technology Fact Sheets
Publications
Related Links
|
SELinux Mailing ListBug in the semanage user management code or genhomedircon?
From: Thomas Bleher <bleher_at_informatik.uni-muenchen.de>
Date: Thu, 16 Mar 2006 21:45:12 +0100
I think the following command sequence illustrates my problem:
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.Received on Thu 16 Mar 2006 - 15:45:17 EST |
|
Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009 |