summaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_shadow.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_shadow.patch')
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_shadow.patch50
1 files changed, 0 insertions, 50 deletions
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_shadow.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_shadow.patch
deleted file mode 100644
index b441257..0000000
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_shadow.patch
+++ /dev/null
@@ -1,50 +0,0 @@
1Subject: [PATCH] fix real path for shadow commands.
2
3Upstream-Status: Inappropriate [only for Poky]
4
5Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
6Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
7---
8 policy/modules/admin/usermanage.fc | 6 ++++++
9 1 file changed, 6 insertions(+)
10
11--- a/policy/modules/admin/usermanage.fc
12+++ b/policy/modules/admin/usermanage.fc
13@@ -2,20 +2,24 @@ ifdef(`distro_debian',`
14 /etc/cron\.daily/cracklib-runtime -- gen_context(system_u:object_r:crack_exec_t,s0)
15 ')
16
17 /usr/bin/chage -- gen_context(system_u:object_r:passwd_exec_t,s0)
18 /usr/bin/chfn -- gen_context(system_u:object_r:chfn_exec_t,s0)
19+/usr/bin/chfn\.shadow -- gen_context(system_u:object_r:chfn_exec_t,s0)
20 /usr/bin/chsh -- gen_context(system_u:object_r:chfn_exec_t,s0)
21+/usr/bin/chsh\.shadow -- gen_context(system_u:object_r:chfn_exec_t,s0)
22 /usr/bin/crack_[a-z]* -- gen_context(system_u:object_r:crack_exec_t,s0)
23 /usr/bin/cracklib-[a-z]* -- gen_context(system_u:object_r:crack_exec_t,s0)
24 /usr/bin/gpasswd -- gen_context(system_u:object_r:groupadd_exec_t,s0)
25 /usr/bin/groupadd -- gen_context(system_u:object_r:groupadd_exec_t,s0)
26 /usr/bin/groupdel -- gen_context(system_u:object_r:groupadd_exec_t,s0)
27 /usr/bin/groupmod -- gen_context(system_u:object_r:groupadd_exec_t,s0)
28 /usr/bin/grpconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
29 /usr/bin/grpunconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
30 /usr/bin/passwd -- gen_context(system_u:object_r:passwd_exec_t,s0)
31+/usr/bin/passwd\.shadow -- gen_context(system_u:object_r:passwd_exec_t,s0)
32+/usr/bin/passwd\.tinylogin -- gen_context(system_u:object_r:passwd_exec_t,s0)
33 /usr/bin/pwconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
34 /usr/bin/pwunconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
35 /usr/bin/useradd -- gen_context(system_u:object_r:useradd_exec_t,s0)
36 /usr/bin/userdel -- gen_context(system_u:object_r:useradd_exec_t,s0)
37 /usr/bin/usermod -- gen_context(system_u:object_r:useradd_exec_t,s0)
38@@ -36,10 +40,12 @@ ifdef(`distro_debian',`
39 /usr/sbin/pwunconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
40 /usr/sbin/useradd -- gen_context(system_u:object_r:useradd_exec_t,s0)
41 /usr/sbin/userdel -- gen_context(system_u:object_r:useradd_exec_t,s0)
42 /usr/sbin/usermod -- gen_context(system_u:object_r:useradd_exec_t,s0)
43 /usr/sbin/vigr -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
44+/usr/sbin/vigr\.shadow -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
45 /usr/sbin/vipw -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
46+/usr/sbin/vipw\.shadow -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
47
48 /usr/share/cracklib(/.*)? gen_context(system_u:object_r:crack_db_t,s0)
49
50 /var/cache/cracklib(/.*)? gen_context(system_u:object_r:crack_db_t,s0)