Skip to contentSkip to conversation

Update for Xen 4.7

PATCH New Anthony PERARD 2 participants 2 messages Jul 28, 2017 – Aug 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update for Xen 4.7

Since Xen 4.7, /dev/xen/privcmd is used instead of /proc/xen/privcmd. Add the device into the policy so xenstored can work.

---
 policy/modules/kernel/devices.fc | 1 +
 1 file changed, 1 insertion(+)
policy/modules/kernel/devices.fc +1 -0
index e3a5ebc9..f4093434 100644
@@ -182,6 +182,7 @@ ifdef(`distro_suse', `
 /dev/xen/evtchn		-c	gen_context(system_u:object_r:xen_device_t,s0)
 /dev/xen/gntdev		-c	gen_context(system_u:object_r:xen_device_t,s0)
 /dev/xen/gntalloc	-c	gen_context(system_u:object_r:xen_device_t,s0)
+/dev/xen/privcmd	-c	gen_context(system_u:object_r:xen_device_t,s0)
 
 ifdef(`distro_debian',`
 # this is a static /dev dir "backup mount"
Signature · 1 line
Anthony PERARD
#1 lore raw

PATCH 1/1 Update for Xen 4.7

Quoted 13 lines · Anthony PERARD via refpolicy

Since Xen 4.7, /dev/xen/privcmd is used instead of /proc/xen/privcmd. Add the device into the policy so xenstored can work.

---
 policy/modules/kernel/devices.fc | 1 +
 1 file changed, 1 insertion(+)
policy/modules/kernel/devices.fc +0 -0
index e3a5ebc9..f4093434 100644

policy/modules/kernel/devices.fc ifdef(`distro_suse', ` · line 188

Quoted 7 lines
policy/modules/kernel/devices.fc +1 -0
@@ -182,6 +182,7 @@ ifdef(`distro_suse', `
 /dev/xen/evtchn		-c	gen_context(system_u:object_r:xen_device_t,s0)
 /dev/xen/gntdev		-c	gen_context(system_u:object_r:xen_device_t,s0)
 /dev/xen/gntalloc	-c	gen_context(system_u:object_r:xen_device_t,s0)
+/dev/xen/privcmd	-c	gen_context(system_u:object_r:xen_device_t,s0)
 
 ifdef(`distro_debian',`
 # this is a static /dev dir "backup mount"

Merged.

Signature · 1 line
Chris PeBenito