diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0010-fc-sysnetwork-apply-policy-to-network-commands-alter.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0010-fc-sysnetwork-apply-policy-to-network-commands-alter.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0010-fc-sysnetwork-apply-policy-to-network-commands-alter.patch b/recipes-security/refpolicy/refpolicy/0010-fc-sysnetwork-apply-policy-to-network-commands-alter.patch new file mode 100644 index 0000000..0621923 --- /dev/null +++ b/recipes-security/refpolicy/refpolicy/0010-fc-sysnetwork-apply-policy-to-network-commands-alter.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From c85fd7d9c45770b31de44bb35521e2251882df10 Mon Sep 17 00:00:00 2001 | ||
2 | From: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
3 | Date: Tue, 9 Jun 2015 21:22:52 +0530 | ||
4 | Subject: [PATCH] fc/sysnetwork: apply policy to network commands alternatives | ||
5 | |||
6 | Upstream-Status: Inappropriate [embedded specific] | ||
7 | |||
8 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
9 | Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com> | ||
10 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | ||
11 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
12 | --- | ||
13 | policy/modules/system/sysnetwork.fc | 4 ++++ | ||
14 | 1 file changed, 4 insertions(+) | ||
15 | |||
16 | diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc | ||
17 | index c9ec4e5ab..4ca151524 100644 | ||
18 | --- a/policy/modules/system/sysnetwork.fc | ||
19 | +++ b/policy/modules/system/sysnetwork.fc | ||
20 | @@ -44,6 +44,7 @@ ifdef(`distro_redhat',` | ||
21 | /usr/bin/dhcpcd -- gen_context(system_u:object_r:dhcpc_exec_t,s0) | ||
22 | /usr/bin/ethtool -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
23 | /usr/bin/ifconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
24 | +/usr/bin/ifconfig\.net-tools -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
25 | /usr/bin/ip -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
26 | /usr/bin/ipx_configure -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
27 | /usr/bin/ipx_interface -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
28 | @@ -60,13 +61,16 @@ ifdef(`distro_redhat',` | ||
29 | /usr/sbin/dhcpcd -- gen_context(system_u:object_r:dhcpc_exec_t,s0) | ||
30 | /usr/sbin/ethtool -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
31 | /usr/sbin/ifconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
32 | +/usr/sbin/ifconfig\.net-tools -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
33 | /usr/sbin/ip -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
34 | +/usr/sbin/ip\.iproute2 -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
35 | /usr/sbin/ipx_configure -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
36 | /usr/sbin/ipx_interface -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
37 | /usr/sbin/ipx_internal_net -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
38 | /usr/sbin/iw -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
39 | /usr/sbin/iwconfig -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
40 | /usr/sbin/mii-tool -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
41 | +/usr/sbin/mii-tool\.net-tools -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
42 | /usr/sbin/pump -- gen_context(system_u:object_r:dhcpc_exec_t,s0) | ||
43 | /usr/sbin/tc -- gen_context(system_u:object_r:ifconfig_exec_t,s0) | ||
44 | |||
45 | -- | ||
46 | 2.17.1 | ||
47 | |||