mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 01:51:26 +00:00
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>
22 lines
683 B
Makefile
22 lines
683 B
Makefile
# Copyright (C) 2016 Nicira, Inc.
|
|
#
|
|
# Copying and distribution of this file, with or without modification,
|
|
# are permitted in any medium without royalty provided the copyright
|
|
# notice and this notice are preserved. This file is offered as-is,
|
|
# without warranty of any kind.
|
|
|
|
EXTRA_DIST += \
|
|
selinux/openvswitch-custom.fc.in \
|
|
selinux/openvswitch-custom.te.in
|
|
|
|
PHONY: selinux-policy
|
|
|
|
selinux-policy: selinux/openvswitch-custom.te selinux/openvswitch-custom.fc
|
|
$(MAKE) -C selinux/ -f /usr/share/selinux/devel/Makefile
|
|
|
|
CLEANFILES += \
|
|
selinux/openvswitch-custom.te \
|
|
selinux/openvswitch-custom.pp \
|
|
selinux/openvswitch-custom.fc \
|
|
selinux/openvswitch-custom.if
|