Skip to content

Commit

Permalink
authlogin: fix regex for /etc/tcb
Browse files Browse the repository at this point in the history
Also add the proper context for the tcb_updpwd binary.

Complements: bc88a1c

Signed-off-by: Björn Esser <[email protected]>
  • Loading branch information
besser82 committed Dec 19, 2024
1 parent 63f0c51 commit d939dcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion policy/modules/system/authlogin.fc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/etc/passwd\.lock -- gen_context(system_u:object_r:shadow_lock_t,s0)
/etc/gshadow.* -- gen_context(system_u:object_r:shadow_t,s0)
/etc/shadow.* -- gen_context(system_u:object_r:shadow_t,s0)
/etc/tcb(/.*)? -- gen_context(system_u:object_r:shadow_t,s0)
/etc/tcb/.+/shadow.* -- gen_context(system_u:object_r:shadow_t,s0)
/etc/security/opasswd -- gen_context(system_u:object_r:shadow_history_t,s0)
/etc/security/opasswd\.old -- gen_context(system_u:object_r:shadow_history_t,s0)

Expand All @@ -26,6 +26,7 @@ ifdef(`distro_redhat', `
/usr/libexec/utempter/utempter -- gen_context(system_u:object_r:utempter_exec_t,s0)
')
/usr/libexec/chkpwd/tcb_chkpwd -- gen_context(system_u:object_r:chkpwd_exec_t,s0)
/usr/libexec/chkpwd/tcb_updpwd -- gen_context(system_u:object_r:updpwd_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)
Expand Down

0 comments on commit d939dcb

Please sign in to comment.