Bug 885181
| Summary: | MLS should be optional while changing default selinuxusermap order | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Kaleem <ksiddiqu> |
| Component: | ipa | Assignee: | Rob Crittenden <rcritten> |
| Status: | CLOSED NOTABUG | QA Contact: | Namita Soman <nsoman> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4 | CC: | clong, mgrepl, mkosek |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-12-12 14:29:40 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Kaleem
2012-12-07 16:53:34 UTC
Upstream ticket: https://fedorahosted.org/freeipa/ticket/3290 Mirek, could you please comment if SELinux users without MLS value are valid or not? It is unclear to me. For starters, it is certainly not working with current SELinux version: # cat /etc/selinux/targeted/logins/admin *:staff_u # semanage login -l Login Name SELinux User MLS/MCS Range Service __default__ unconfined_u s0-s0:c0.c1023 * root unconfined_u s0-s0:c0.c1023 * system_u system_u s0-s0:c0.c1023 * <<< No local override stated here, when I log in as "admin" I get system default SELinux user assigned. When I add a default MLS value (s0), it works: # echo "*:staff_u:s0" > /etc/selinux/targeted/logins/admin # semanage login -l Login Name SELinux User MLS/MCS Range Service __default__ unconfined_u s0-s0:c0.c1023 * root unconfined_u s0-s0:c0.c1023 * system_u system_u s0-s0:c0.c1023 * Local customization in /etc/selinux/targeted/logins admin staff_u s0 * $ ssh admin.client.test admin.client.test's password: Last login: Wed Dec 12 03:20:30 2012 from 10.0.0.1 $ id -Z staff_u:staff_r:staff_t:s0 Yes, you are right. Just to be clear we talk about MCS related to targeted policy where is just one default level - s0. Basically I would suggest you to add a note where staff_u/sysadm_u should have "s0-s0:c0.c1023" range user_u/guest_u can just run with the default level "s0" (In reply to comment #4) > Yes, you are right. > > Just to be clear we talk about MCS related to targeted policy where is just > one default level - s0. > > Basically I would suggest you to add a note where > > staff_u/sysadm_u should have "s0-s0:c0.c1023" range > > user_u/guest_u can just run with the default level "s0" Thanks, Mirek! Though I am still not certain what is the resolution of my question. Do I understand it right that we should require at least the default MLS range to be passed? I.e. allow "user_u:s0" to be configured in FreeIPA as a SELinux user and do not allow plain "user_u"? If this is the case, I think I will just improve our error message with the info you provided... Yes, "s0" should be required. I believe you should use "user_u:s0" as default option as you wrote. I updated the freeipa.org wiki and added an information that at least the default range is required. As for this Bugzilla, closing as NOTABUG as there is nothing to be done on FreeIPA side. I did not see a place where we would mention that the range is optional. Our examples in help also always use at least the default range. |