diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0005-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0005-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0005-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch b/recipes-security/refpolicy/refpolicy/0005-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch new file mode 100644 index 0000000..2fe6479 --- /dev/null +++ b/recipes-security/refpolicy/refpolicy/0005-fc-resolv.conf-label-resolv.conf-in-var-run-properly.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 90a9ef3adb997517f921a3524da99c966e3b00df Mon Sep 17 00:00:00 2001 | ||
2 | From: Joe MacDonald <joe_macdonald@mentor.com> | ||
3 | Date: Thu, 4 Apr 2019 10:45:03 -0400 | ||
4 | Subject: [PATCH] fc/resolv.conf: label resolv.conf in var/run/ properly | ||
5 | |||
6 | Upstream-Status: Inappropriate [embedded specific] | ||
7 | |||
8 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
9 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | ||
10 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
11 | --- | ||
12 | policy/modules/system/sysnetwork.fc | 1 + | ||
13 | 1 file changed, 1 insertion(+) | ||
14 | |||
15 | diff --git a/policy/modules/system/sysnetwork.fc b/policy/modules/system/sysnetwork.fc | ||
16 | index fddf9f693..acf539656 100644 | ||
17 | --- a/policy/modules/system/sysnetwork.fc | ||
18 | +++ b/policy/modules/system/sysnetwork.fc | ||
19 | @@ -83,6 +83,7 @@ ifdef(`distro_redhat',` | ||
20 | /run/dhcpcd(/.*)? gen_context(system_u:object_r:dhcpc_runtime_t,s0) | ||
21 | /run/netns -d gen_context(system_u:object_r:ifconfig_runtime_t,s0) | ||
22 | /run/netns/[^/]+ -- <<none>> | ||
23 | +/run/resolv\.conf.* -- gen_context(system_u:object_r:net_conf_t,s0) | ||
24 | |||
25 | ifdef(`distro_gentoo',` | ||
26 | /var/lib/dhcpc(/.*)? gen_context(system_u:object_r:dhcpc_state_t,s0) | ||
27 | -- | ||
28 | 2.17.1 | ||
29 | |||