aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy-git/0002-fc-subs-busybox-set-aliases-for-bin-sbin-and-usr.patch
blob: 22eab15111980659fa43ff4c56408e7ef49807b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From a47fb4d6a25574d900213ef63b5c7e3ce7182419 Mon Sep 17 00:00:00 2001
From: Joe MacDonald <joe_macdonald@mentor.com>
Date: Thu, 28 Mar 2019 20:48:10 -0400
Subject: [PATCH 02/34] fc/subs/busybox: set aliases for bin, sbin and usr

The objects in /usr/lib/busybox/* should have the same policy applied as
the corresponding objects in the / hierarchy.

Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
---
 config/file_contexts.subs_dist | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/config/file_contexts.subs_dist b/config/file_contexts.subs_dist
index be532d7f..04fca3c3 100644
--- a/config/file_contexts.subs_dist
+++ b/config/file_contexts.subs_dist
@@ -41,3 +41,10 @@
 /var/volatile/tmp /var/tmp
 /var/volatile/lock /var/lock
 /var/volatile/run/lock /var/lock
+
+# busybox aliases
+# quickly match up the busybox built-in tree to the base filesystem tree
+/usr/lib/busybox/bin /bin
+/usr/lib/busybox/sbin /sbin
+/usr/lib/busybox/usr /usr
+
-- 
2.19.1