Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions policy/modules/contrib/policykit.fc
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
/var/lib/PolicyKit-public(/.*)? gen_context(system_u:object_r:policykit_var_lib_t,s0)
/run/PolicyKit(/.*)? gen_context(system_u:object_r:policykit_var_run_t,s0)
/run/polkit-1(/.*)? gen_context(system_u:object_r:policykit_var_run_t,s0)
/run/polkit(/.*)? gen_context(system_u:object_r:policykit_var_run_t,s0)
2 changes: 2 additions & 0 deletions policy/modules/contrib/policykit.te
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ init_nnp_daemon_domain(policykit_t)
type policykit_auth_t, policykit_domain;
type policykit_auth_exec_t;
init_daemon_domain(policykit_auth_t, policykit_auth_exec_t)
init_nnp_daemon_domain(policykit_auth_t)

type policykit_grant_t, policykit_domain;
type policykit_grant_exec_t;
Expand Down Expand Up @@ -209,6 +210,7 @@ fs_dontaudit_append_ecryptfs_files(policykit_auth_t)
auth_rw_var_auth(policykit_auth_t)
auth_use_nsswitch(policykit_auth_t)
auth_domtrans_chk_passwd(policykit_auth_t)
auth_nnp_domtrans_chkpwd(policykit_auth_t)

logging_send_syslog_msg(policykit_auth_t)

Expand Down
17 changes: 17 additions & 0 deletions policy/modules/system/authlogin.if
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,23 @@ interface(`auth_domtrans_chkpwd',`
auth_domtrans_upd_passwd($1)
')

########################################
## <summary>
## Allow caller to transition to chkpwd_t with NoNewPrivileges
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`auth_nnp_domtrans_chkpwd',`
gen_require(`
type chkpwd_t;
')
allow $1 chkpwd_t:process2 nnp_transition;
')

########################################
## <summary>
## Execute chkpwd in the caller domain.
Expand Down