summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Conole <aconole@redhat.com>2017-09-01 13:17:38 -0400
committerAnsis Atteka <aatteka@ovn.org>2017-09-01 12:54:23 -0700
commitc37f96c93f5a05057069992437af0c8c8017df7c (patch)
treebfdf788b85e83716196e983a96b4fb185a82f7d1
parentfa7eaa83b0c7f6d44f03f51cff4526b204be07d9 (diff)
downloadopenvswitch-c37f96c93f5a05057069992437af0c8c8017df7c.tar.gz
selinux: move chr_file to non-dpdk as well
A last-minute change to the selinux policy caught by testing incorrectly omitted moving a definition from non-dpdk to dpdk. This moves the chr_file definition to a non-dpdk enabled permission, which should allow non-dpdk enabled builds to work. Fixes: 84d272330506 ("selinux: update policy to reflect non-root and dpdk support") Signed-off-by: Aaron Conole <aconole@redhat.com> Acked-by: Ansis Atteka <aatteka@ovn.org>
-rw-r--r--selinux/openvswitch-custom.te.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/selinux/openvswitch-custom.te.in b/selinux/openvswitch-custom.te.in
index 853de1618..c1a774f0e 100644
--- a/selinux/openvswitch-custom.te.in
+++ b/selinux/openvswitch-custom.te.in
@@ -18,6 +18,7 @@ require {
@end_dpdk@
class capability { dac_override audit_write };
+ class chr_file { write getattr read open ioctl };
class dir { write remove_name add_name lock read };
class file { write getattr read open execute execute_no_trans create unlink };
class netlink_audit_socket { create nlmsg_relay audit_write read write };
@@ -25,7 +26,6 @@ require {
class unix_stream_socket { write getattr read connectto connect setopt getopt sendto accept bind recvfrom acceptfrom };
@begin_dpdk@
- class chr_file { write getattr read open ioctl };
class tun_socket { relabelfrom relabelto create };
@end_dpdk@
}