Skip to contentSkip to conversation

xen filecontexts for Debian

refpolicy Russell Coker 2 participants 2 messages Oct 20, 2008 – Nov 24, 2008

lore
Share & tools
lore
#0 lore raw

The attached patch uses the correct paths for Xen in Debian/Lenny.

Signature · 11 lines
russell at coker.com.au
http://etbe.coker.com.au/          My Blog

http://www.coker.com.au/sponsorship.html Sponsoring Free Software development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xen-fc.diff
Type: text/x-diff
Size: 1046 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20081021/c2b89268/attachment.bin 
#1 lore raw
Quoted 1 line · Russell Coker

The attached patch uses the correct paths for Xen in Debian/Lenny.

Merged.

Quoted 32 lines

differences
between files
attachment
(xen-fc.diff)

tmp/xen.fc 2008-10-21 00:27:04.000000000 +1100 renamed from xen.fc 2008-09-10 09:06:03.000000000 +1000 +7 -1
@@ -1,11 +1,17 @@
 /dev/xen/tapctrl.*     -p      gen_context(system_u:object_r:xenctl_t,s0)
 
 /usr/bin/virsh         --      gen_context(system_u:object_r:xm_exec_t,s0)
-
+ifdef(`distro_debian', `
+/usr/lib/xen-[^/]*/bin/xenconsoled -- gen_context(system_u:object_r:xenconsoled_exec_t,s0)
+/usr/lib/xen-[^/]*/bin/xend -- gen_context(system_u:object_r:xend_exec_t,s0)
+/usr/lib/xen-[^/]*/bin/xenstored -- gen_context(system_u:object_r:xenstored_exec_t,s0)
+/usr/lib/xen-[^/]*/bin/xm --   gen_context(system_u:object_r:xm_exec_t,s0)
+', `
 /usr/sbin/xenconsoled  --      gen_context(system_u:object_r:xenconsoled_exec_t,s0)
 /usr/sbin/xend         --      gen_context(system_u:object_r:xend_exec_t,s0)
 /usr/sbin/xenstored    --      gen_context(system_u:object_r:xenstored_exec_t,s0)
 /usr/sbin/xm           --      gen_context(system_u:object_r:xm_exec_t,s0)
+')
 
 /var/lib/xen(/.*)?             gen_context(system_u:object_r:xend_var_lib_t,s0)
 /var/lib/xen/images(/.*)?      gen_context(system_u:object_r:xen_image_t,s0)
Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150