summaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_login.patch
blob: fc5421733629da91e63a828a67391085f9a7c1f1 (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
32
33
34
35
Subject: [PATCH] fix real path for login commands.

Upstream-Status: Inappropriate [only for Poky]

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
---
 policy/modules/system/authlogin.fc |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

--- a/policy/modules/system/authlogin.fc
+++ b/policy/modules/system/authlogin.fc
@@ -3,20 +3,19 @@
 /etc/gshadow.*		--	gen_context(system_u:object_r:shadow_t,s0)
 /etc/passwd\.lock	--	gen_context(system_u:object_r:shadow_t,s0)
 /etc/shadow.*		--	gen_context(system_u:object_r:shadow_t,s0)
 
 /usr/bin/login		--	gen_context(system_u:object_r:login_exec_t,s0)
+/usr/bin/login\.shadow	--	gen_context(system_u:object_r:login_exec_t,s0)
+/usr/bin/login\.tinylogin	--	gen_context(system_u:object_r:login_exec_t,s0)
 
 /usr/kerberos/sbin/login\.krb5 -- gen_context(system_u:object_r:login_exec_t,s0)
 
 /usr/lib/utempter/utempter --	gen_context(system_u:object_r:utempter_exec_t,s0)
 
 /usr/sbin/pam_console_apply	--	gen_context(system_u:object_r:pam_console_exec_t,s0)
 /usr/sbin/pam_timestamp_check   --	gen_context(system_u:object_r:pam_exec_t,s0)
-/usr/sbin/unix_chkpwd		--	gen_context(system_u:object_r:chkpwd_exec_t,s0)
-/usr/sbin/unix_update		--	gen_context(system_u:object_r:updpwd_exec_t,s0)
-/usr/sbin/unix_verify		--	gen_context(system_u:object_r:chkpwd_exec_t,s0)
 /usr/sbin/utempter		--	gen_context(system_u:object_r:utempter_exec_t,s0)
 /usr/sbin/validate		--	gen_context(system_u:object_r:chkpwd_exec_t,s0)
 ifdef(`distro_suse', `
 /usr/sbin/unix2_chkpwd	--	gen_context(system_u:object_r:chkpwd_exec_t,s0)
 ')