diff options
author | Wenzong Fan <wenzong.fan@windriver.com> | 2014-02-13 03:09:21 -0500 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2014-02-13 10:52:07 -0500 |
commit | a6079a43719e79e12a57e609923a0cccdba06916 (patch) | |
tree | 3078a38648873aacdeae3d0bd7ef4165dcb17ec5 | |
parent | 33e54aa891626c10f7cb865cc263b708c060fc85 (diff) | |
download | meta-selinux-a6079a43719e79e12a57e609923a0cccdba06916.tar.gz |
refpolicy: fix real path for su.shadow
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r-- | recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-fix-real-path_su.patch | 25 | ||||
-rw-r--r-- | recipes-security/refpolicy/refpolicy_2.20130424.inc | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-fix-real-path_su.patch b/recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-fix-real-path_su.patch new file mode 100644 index 0000000..b0392ce --- /dev/null +++ b/recipes-security/refpolicy/refpolicy-2.20130424/poky-fc-fix-real-path_su.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From 4affa5e9797f5d51597c9b8e0f2503883c766699 Mon Sep 17 00:00:00 2001 | ||
2 | From: Wenzong Fan <wenzong.fan@windriver.com> | ||
3 | Date: Thu, 13 Feb 2014 00:33:07 -0500 | ||
4 | Subject: [PATCH] fix real path for su.shadow command | ||
5 | |||
6 | Upstream-Status: Inappropriate [only for Poky] | ||
7 | |||
8 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
9 | --- | ||
10 | policy/modules/admin/su.fc | 2 ++ | ||
11 | 1 file changed, 2 insertions(+) | ||
12 | |||
13 | diff --git a/policy/modules/admin/su.fc b/policy/modules/admin/su.fc | ||
14 | index a563687..0f43827 100644 | ||
15 | --- a/policy/modules/admin/su.fc | ||
16 | +++ b/policy/modules/admin/su.fc | ||
17 | @@ -4,3 +4,5 @@ | ||
18 | |||
19 | /usr/(local/)?bin/ksu -- gen_context(system_u:object_r:su_exec_t,s0) | ||
20 | /usr/bin/kdesu -- gen_context(system_u:object_r:su_exec_t,s0) | ||
21 | + | ||
22 | +/bin/su.shadow -- gen_context(system_u:object_r:su_exec_t,s0) | ||
23 | -- | ||
24 | 1.7.9.5 | ||
25 | |||
diff --git a/recipes-security/refpolicy/refpolicy_2.20130424.inc b/recipes-security/refpolicy/refpolicy_2.20130424.inc index 23339e3..9e5e426 100644 --- a/recipes-security/refpolicy/refpolicy_2.20130424.inc +++ b/recipes-security/refpolicy/refpolicy_2.20130424.inc | |||
@@ -30,6 +30,7 @@ SRC_URI += "file://poky-fc-subs_dist.patch \ | |||
30 | file://poky-fc-udevd.patch \ | 30 | file://poky-fc-udevd.patch \ |
31 | file://poky-fc-rpm.patch \ | 31 | file://poky-fc-rpm.patch \ |
32 | file://poky-fc-ftpwho-dir.patch \ | 32 | file://poky-fc-ftpwho-dir.patch \ |
33 | file://poky-fc-fix-real-path_su.patch \ | ||
33 | " | 34 | " |
34 | 35 | ||
35 | # Specific policy for Poky | 36 | # Specific policy for Poky |