Skip to content

Commit a0efb7c

Browse files
apconoleAnsis Atteka
authored and
Ansis Atteka
committedJun 18, 2018
selinux: introduce domain transitioned kmod helper
This commit uses the previously defined selinux label to transition from the openvswitch_t to openvswitch_load_module_t domain by executing ovs-kmod-ctl that is labelled with openvswitch_load_module_exec_t type. Note that unless the selinux relabel operation is invoked, the script will not be labelled. This merely instructs the selinux tools that ovs-kmod-ctl should have a label applied. Acked-by: Ansis Atteka <aatteka@ovn.org> Acked-by: Timothy Redaelli <tredaelli@redhat.com> Signed-off-by: Aaron Conole <aconole@redhat.com>
1 parent 341a373 commit a0efb7c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
 

‎selinux/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
openvswitch-custom.te
2+
openvswitch-custom.fc
3+
openvswitch-custom.pp
4+
openvswitch-custom.if
5+
tmp/

‎selinux/automake.mk

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
# without warranty of any kind.
77

88
EXTRA_DIST += \
9+
selinux/openvswitch-custom.fc.in \
910
selinux/openvswitch-custom.te.in
1011

1112
PHONY: selinux-policy
1213

13-
selinux-policy: selinux/openvswitch-custom.te
14+
selinux-policy: selinux/openvswitch-custom.te selinux/openvswitch-custom.fc
1415
$(MAKE) -C selinux/ -f /usr/share/selinux/devel/Makefile
1516

1617
CLEANFILES += \

‎selinux/openvswitch-custom.fc.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@pkgdatadir@/scripts/ovs-kmod-ctl -- gen_context(system_u:object_r:openvswitch_load_module_exec_t,s0)

0 commit comments

Comments
 (0)
Please sign in to comment.