summaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch')
-rw-r--r--recipes-security/refpolicy/refpolicy/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch b/recipes-security/refpolicy/refpolicy/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch
new file mode 100644
index 0000000..e7b69ef
--- /dev/null
+++ b/recipes-security/refpolicy/refpolicy/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch
@@ -0,0 +1,33 @@
1From 2a68b7539104bec76aaf2a18b399770f59d0cb28 Mon Sep 17 00:00:00 2001
2From: Joe MacDonald <joe_macdonald@mentor.com>
3Date: Thu, 28 Mar 2019 20:48:10 -0400
4Subject: [PATCH] fc/subs/busybox: set aliases for bin, sbin and usr
5
6The objects in /usr/lib/busybox/* should have the same policy applied as
7the corresponding objects in the / hierarchy.
8
9Upstream-Status: Inappropriate [embedded specific]
10
11Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
12Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
13---
14 config/file_contexts.subs_dist | 6 ++++++
15 1 file changed, 6 insertions(+)
16
17diff --git a/config/file_contexts.subs_dist b/config/file_contexts.subs_dist
18index aeb25a5bb..c249c5207 100644
19--- a/config/file_contexts.subs_dist
20+++ b/config/file_contexts.subs_dist
21@@ -37,3 +37,9 @@
22 # volatile hierarchy.
23 /var/volatile/log /var/log
24 /var/volatile/tmp /var/tmp
25+
26+# busybox aliases
27+# quickly match up the busybox built-in tree to the base filesystem tree
28+/usr/lib/busybox/bin /usr/bin
29+/usr/lib/busybox/sbin /usr/sbin
30+/usr/lib/busybox/usr /usr
31--
322.17.1
33