diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0027-file_contexts.subs_dist-set-aliase-for-root-director.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0027-file_contexts.subs_dist-set-aliase-for-root-director.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0027-file_contexts.subs_dist-set-aliase-for-root-director.patch b/recipes-security/refpolicy/refpolicy/0027-file_contexts.subs_dist-set-aliase-for-root-director.patch new file mode 100644 index 0000000..a527d94 --- /dev/null +++ b/recipes-security/refpolicy/refpolicy/0027-file_contexts.subs_dist-set-aliase-for-root-director.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 153bdbda047a3e769983000b4c8263eb4bfd2031 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Sun, 5 Apr 2020 22:03:45 +0800 | ||
4 | Subject: [PATCH] file_contexts.subs_dist: set aliase for /root directory | ||
5 | |||
6 | The genhomedircon.py will expand /root directory to /home/root. | ||
7 | Add an aliase for it | ||
8 | |||
9 | Upstream-Status: Inappropriate [embedded specific] | ||
10 | |||
11 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
12 | --- | ||
13 | config/file_contexts.subs_dist | 4 ++++ | ||
14 | 1 file changed, 4 insertions(+) | ||
15 | |||
16 | diff --git a/config/file_contexts.subs_dist b/config/file_contexts.subs_dist | ||
17 | index 690007f22..f80499ebf 100644 | ||
18 | --- a/config/file_contexts.subs_dist | ||
19 | +++ b/config/file_contexts.subs_dist | ||
20 | @@ -45,3 +45,7 @@ | ||
21 | /usr/lib/busybox/bin /usr/bin | ||
22 | /usr/lib/busybox/sbin /usr/sbin | ||
23 | /usr/lib/busybox/usr /usr | ||
24 | + | ||
25 | +# The genhomedircon.py will expand /root home directory to /home/root | ||
26 | +# Add an aliase for it | ||
27 | +/root /home/root | ||
28 | -- | ||
29 | 2.25.1 | ||
30 | |||