summaryrefslogtreecommitdiffstats
path: root/extras/selinux
diff options
context:
space:
mode:
authorBilly McFall <bmcfall@redhat.com>2019-05-16 09:13:50 -0400
committerDave Barach <openvpp@barachs.net>2019-05-31 11:43:41 +0000
commit41deceaf25bc2360a9ee6571b5485b8a4a1cbd5b (patch)
tree934f489dd2c96955b363dee6686dca9feae937fb /extras/selinux
parent5b82610cfa1f6d782ce53c2215fbbb2f6a5b755d (diff)
VPP-1640 - Missing rules in vpp-selinux-policy
SELinux exceptions occurring for host interfaces and with the vmxnet3 driver. Change-Id: Ia22bd82572acfa07ae287a755830abe1413f9939 Signed-off-by: Billy McFall <bmcfall@redhat.com>
Diffstat (limited to 'extras/selinux')
-rw-r--r--extras/selinux/vpp-custom.te3
1 files changed, 2 insertions, 1 deletions
diff --git a/extras/selinux/vpp-custom.te b/extras/selinux/vpp-custom.te
index 4dbc2d6de2c..7cc2d55412a 100644
--- a/extras/selinux/vpp-custom.te
+++ b/extras/selinux/vpp-custom.te
@@ -46,7 +46,7 @@ files_tmp_file(vpp_tmp_t)
allow vpp_t self:capability { dac_override ipc_lock setgid sys_rawio net_raw sys_admin net_admin chown }; # too benevolent
dontaudit vpp_t self:capability2 block_suspend;
allow vpp_t self:process { execmem execstack setsched signal }; # too benevolent
-allow vpp_t self:packet_socket { bind create setopt ioctl };
+allow vpp_t self:packet_socket { bind create setopt ioctl map };
allow vpp_t self:tun_socket { create relabelto relabelfrom };
allow vpp_t self:udp_socket { create ioctl };
allow vpp_t self:unix_dgram_socket { connect create ioctl };
@@ -96,6 +96,7 @@ dev_rw_sysfs(vpp_t)
dev_read_cpuid(vpp_t)
dev_rw_vfio_dev(vpp_t)
dev_rw_vhost( vpp_t )
+dev_rw_generic_chr_files(vpp_t)
domain_obj_id_change_exemption(vpp_t)