Bug 177599

Summary: selinux policy doesn't allow access to xen virtual disks
Product: [Fedora] Fedora Reporter: Jeremy Katz <katzj>
Component: selinux-policyAssignee: Russell Coker <rcoker>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.1.9-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-11 11:00:29 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:

Description Jeremy Katz 2006-01-12 02:31:31 UTC
We lost support for labeling xen disks as fixed_device_t.  This seems like the
sane fix

--- serefpolicy-2.1.9/policy/modules/kernel/storage.fc.xen      2006-01-11
21:31:15.000000000 -0500
+++ serefpolicy-2.1.9/policy/modules/kernel/storage.fc  2006-01-11
21:31:48.000000000 -0500
@@ -12,6 +12,7 @@
 /dev/cm20.*            -b      gen_context(system_u:object_r:removable_device_t,s0)
 /dev/dasd[^/]*         -b     
gen_context(system_u:object_r:fixed_disk_device_t,s15:c0.c255)
 /dev/dm-[0-9]+         -b     
gen_context(system_u:object_r:fixed_disk_device_t,s15:c0.c255)
+/dev/xvd[^/]*          -b     
gen_context(system_u:object_r:fixed_disk_device_t,s15:c0.c255)
 /dev/fd[^/]+           -b      gen_context(system_u:object_r:removable_device_t,s0)
 /dev/flash[^/]*                -b     
gen_context(system_u:object_r:fixed_disk_device_t,s15:c0.c255)
 /dev/gscd              -b      gen_context(system_u:object_r:removable_device_t,s0)

Comment 1 Daniel Walsh 2006-01-13 15:36:00 UTC
Fixed in 2.1.9-2