Bug 852609
Summary: | [sVirt] selinux user in seclabel changed | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Wayne Sun <gsun> |
Component: | libvirt | Assignee: | Gunannan Ren <gren> |
Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 6.4 | CC: | acathrow, ajia, berrange, dallan, dyasny, dyuan, gren, mhcerri, mzhan, rwu, zhwang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-09-07 10:58:03 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: | |||
Bug Depends On: | |||
Bug Blocks: | 822589 |
Description
Wayne Sun
2012-08-29 05:17:32 UTC
BTW, I have ever raised this issue on bug 851491, and Peter has committed patches to fix them together on bug 851491. (In reply to comment #2) > BTW, I have ever raised this issue on bug 851491, and Peter has committed > patches to fix them together on bug 851491. As the note in: https://bugzilla.redhat.com/show_bug.cgi?id=851491#c6 (Note that the labels are different - probably because the git version isn't labeled correctly -, but the setting still fails) The label problem still exist, this bug is for tracking this only. Tested with latest libvirt: libvirt-0.10.0-1.el6.x86_64 This problem still exists. The latest libvirt updates the SELinux user and role from the label that is used as base for label generation with user and role from the current SELinux context of libvirtd process. I don't know if this is an expected behavior but it seems to be changed by this commit: commit 4e365df44fb1b1b93186d6be006ea445e1409a02 Author: Daniel P. Berrange <berrange> Date: Fri Aug 10 14:27:51 2012 +0100 Honour current sensitivity and category ranges in SELinux label generation Currently the dynamic label generation code will create labels with a sensitivity of s0, and a category pair in the range 0-1023. This is fine when running a standard MCS policy because libvirtd will run with a label system_u:system_r:virtd_t:s0-s0:c0.c1023 With custom policies though, it is possible for libvirtd to have a different sensitivity, or category range. For example system_u:system_r:virtd_t:s2-s3:c512.c1023 In this case we must assign the VM a sensitivity matching the current lower sensitivity value, and categories in the range 512-1023 Signed-off-by: Daniel P. Berrange <berrange> Daniel, can you confirm this? Yes, as described above, for process labels we now copy the user + role from libvirtd's context into the VM's context, instead of hardcoding 'system_u:system_r'. For disk labels we now copy the user from libvirtd's context into the VM's disk context, instead of hardcoding 'system_u'. Will this bug be changed to NOTABUG? |