Bug 554777
Summary: | Missing selinux rules/labels for /etc/xen (and possibly other places). | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Barry Marson <bmarson> | ||||||
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||||
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 5.5 | CC: | mjenner, mmalik, mpaesold, ralph | ||||||
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: | 2010-03-30 07:50:59 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Barry Marson
2010-01-12 16:11:19 UTC
Created attachment 383272 [details]
audit.log from dell-pe6800-01.rhts.bos.redhat.com
Miroslav add: /etc/xen -d gen_context(system_u:object_r:virt_etc_t,s0) /etc/xen/[^/]* -- gen_context(system_u:object_r:virt_etc_t,s0) /etc/xen/[^/]* -d gen_context(system_u:object_r:virt_etc_rw_t,s0) /etc/xen/.*/.* gen_context(system_u:object_r:virt_etc_rw_t,s0) virt.fc Add virt_manage_configb(xm_t) to xen.te Fixed in selinux-policy-2.4.6-270.el5 An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0182.html This still does not work, when you have symbolic links going from /etc/xen/auto to /etc/xen. After updating to the policy version in the errata file (or by going from 5.4 to 5.5 at the moment), those links are relabeled as system_u:object_r:virt_etc_t Running (for example) "service xendomains status" leads to this denial: type=AVC msg=audit(1274304143.935:17): avc: denied { read } for pid=5769 comm="xm" name="gembox" dev=dm-0 ino=413828 scontext=system_u:system_r:xm_t:s0 tcontext=system_u:object_r:virt_etc_rw_t:s0 tclass=lnk_file The reporter of http://bugs.centos.org/view.php?id=4329 even said that his domains did not autostart after relabeling, something I couldn't recreate. But: If I remove a link which got labeled as system_u:object_r:virt_etc_t and recreate it, it gets a different label: lrwxrwxrwx root root user_u:object_r:etc_t kiste -> /etc/xen/kiste Labeled this way, "service xendomain status works", as that seems to be a broader context in which more applications are allowed to read. |