summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-security/refpolicy/refpolicy/0081-fc-sysnetwork-update-file-context-for-ifconfig.patch31
-rw-r--r--recipes-security/refpolicy/refpolicy_common.inc1
2 files changed, 32 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0081-fc-sysnetwork-update-file-context-for-ifconfig.patch b/recipes-security/refpolicy/refpolicy/0081-fc-sysnetwork-update-file-context-for-ifconfig.patch
new file mode 100644
index 0000000..eaecf40
--- /dev/null
+++ b/recipes-security/refpolicy/refpolicy/0081-fc-sysnetwork-update-file-context-for-ifconfig.patch
@@ -0,0 +1,31 @@
1From e6b303444988717c725a71db7b21417839321463 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Tue, 4 Aug 2020 16:48:12 +0800
4Subject: [PATCH] fc/sysnetwork: update file context for ifconfig
5
6The ifconfig was moved from sbin to bin with oe-core commit:
7c9caff40ff61c08e24a84922f8d7c8e9cdf8883e. Update the file context for
8it.
9
10Upstream-Status: Inappropriate [embedded specific]
11
12Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
13---
14 policy/modules/system/sysnetwork.fc | 1 +
15 1 file changed, 1 insertion(+)
16
17diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc
18index d8902d725..9ec4eefb7 100644
19--- a/policy/modules/system/sysnetwork.fc
20+++ b/policy/modules/system/sysnetwork.fc
21@@ -43,6 +43,7 @@ ifdef(`distro_redhat',`
22 /usr/bin/dhcpcd -- gen_context(system_u:object_r:dhcpc_exec_t,s0)
23 /usr/bin/ethtool -- gen_context(system_u:object_r:ifconfig_exec_t,s0)
24 /usr/bin/ifconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0)
25+/usr/bin/ifconfig\.net-tools -- gen_context(system_u:object_r:ifconfig_exec_t,s0)
26 /usr/bin/ip -- gen_context(system_u:object_r:ifconfig_exec_t,s0)
27 /usr/bin/ipx_configure -- gen_context(system_u:object_r:ifconfig_exec_t,s0)
28 /usr/bin/ipx_interface -- gen_context(system_u:object_r:ifconfig_exec_t,s0)
29--
302.17.1
31
diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc
index 46cbfa3..6600af5 100644
--- a/recipes-security/refpolicy/refpolicy_common.inc
+++ b/recipes-security/refpolicy/refpolicy_common.inc
@@ -98,6 +98,7 @@ SRC_URI += " \
98 file://0078-policy-modules-system-systemd-systemd-gpt-auto-gener.patch \ 98 file://0078-policy-modules-system-systemd-systemd-gpt-auto-gener.patch \
99 file://0079-policy-modules-services-ntp-make-nptd_t-MLS-trusted-.patch \ 99 file://0079-policy-modules-services-ntp-make-nptd_t-MLS-trusted-.patch \
100 file://0080-policy-modules-services-avahi-make-avahi_t-MLS-trust.patch \ 100 file://0080-policy-modules-services-avahi-make-avahi_t-MLS-trust.patch \
101 file://0081-fc-sysnetwork-update-file-context-for-ifconfig.patch \
101 " 102 "
102 103
103S = "${WORKDIR}/refpolicy" 104S = "${WORKDIR}/refpolicy"