vhost: Add /dev/vhost-scsi device of type vhost_device_t.
PATCH 1/1 vhost: Add /dev/vhost-scsi device of type vhost_device_t.
Signed-off-by Jagannathan Raman <[email protected]>
--- policy/modules/kernel/devices.fc | 1 + policy/modules/kernel/devices.if | 2 +- policy/modules/kernel/devices.te | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-)
policy/modules/kernel/devices.fc +1 -0
@@ -120,6 +120,7 @@ ifdef(`distro_suse', ` ') /dev/vfio/.+ -c gen_context(system_u:object_r:vfio_device_t,s0) /dev/vhost-net -c gen_context(system_u:object_r:vhost_device_t,s0) +/dev/vhost-scsi -c gen_context(system_u:object_r:vhost_device_t,s0) /dev/vbi.* -c gen_context(system_u:object_r:v4l_device_t,s0) /dev/vbox.* -c gen_context(system_u:object_r:xserver_misc_device_t,s0) /dev/vga_arbiter -c gen_context(system_u:object_r:xserver_misc_device_t,s0)
policy/modules/kernel/devices.if +1 -1
@@ -4839,7 +4839,7 @@ interface(`dev_relabelfrom_vfio_dev',` ############################ ## <summary> -## Allow read/write the vhost net device +## Allow read/write the vhost devices ## </summary> ## <param name="domain"> ## <summary>
policy/modules/kernel/devices.te +2 -1
@@ -286,7 +286,8 @@ type v4l_device_t; dev_node(v4l_device_t) # -# vhost_device_t is the type for /dev/vhost-net +# vhost_device_t is the type for vhost devices like +# /dev/vhost-net and /dev/vhost-scsi # type vhost_device_t; dev_node(vhost_device_t)
Signature · 1 line
1.8.3.1
PATCH 1/1 vhost: Add /dev/vhost-scsi device of type vhost_device_t.
Quoted 37 lines · Jagannathan Raman
Signed-off-by Jagannathan Raman <[email protected]>--- policy/modules/kernel/devices.fc | 1 + policy/modules/kernel/devices.if | 2 +- policy/modules/kernel/devices.te | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-)policy/modules/kernel/devices.fc +1
-0@@ -120,6 +120,7 @@ ifdef(`distro_suse', ` ') /dev/vfio/.+ -c gen_context(system_u:object_r:vfio_device_t,s0) /dev/vhost-net -c gen_context(system_u:object_r:vhost_device_t,s0) +/dev/vhost-scsi -c gen_context(system_u:object_r:vhost_device_t,s0) /dev/vbi.* -c gen_context(system_u:object_r:v4l_device_t,s0) /dev/vbox.* -c gen_context(system_u:object_r:xserver_misc_device_t,s0) /dev/vga_arbiter -c gen_context(system_u:object_r:xserver_misc_device_t,s0)policy/modules/kernel/devices.if +1
-1@@ -4839,7 +4839,7 @@ interface(`dev_relabelfrom_vfio_dev',` ############################ ## <summary> -## Allow read/write the vhost net device +## Allow read/write the vhost devices ## </summary> ## <param name="domain"> ## <summary>policy/modules/kernel/devices.te +0
-0
policy/modules/kernel/devices.te type v4l_device_t; · line 293
Quoted 9 lines
policy/modules/kernel/devices.te +2
-1@@ -286,7 +286,8 @@ type v4l_device_t; dev_node(v4l_device_t) # -# vhost_device_t is the type for /dev/vhost-net +# vhost_device_t is the type for vhost devices like +# /dev/vhost-net and /dev/vhost-scsi # type vhost_device_t; dev_node(vhost_device_t)
Merged.
Signature · 1 line
Chris PeBenito