1ec3d1a
policy_module(pwauth, 1.0.0)
1ec3d1a
1ec3d1a
########################################
1ec3d1a
#
1ec3d1a
# Declarations
1ec3d1a
#
1ec3d1a
1ec3d1a
type pwauth_t;
1ec3d1a
type pwauth_exec_t;
1ec3d1a
application_domain(pwauth_t, pwauth_exec_t)
1ec3d1a
role system_r types pwauth_t;
1ec3d1a
1ec3d1a
type pwauth_var_run_t;
1ec3d1a
files_pid_file(pwauth_var_run_t)
1ec3d1a
1ec3d1a
########################################
1ec3d1a
#
1ec3d1a
# pwauth local policy
1ec3d1a
#
1ec3d1a
allow pwauth_t self:capability setuid;
1ec3d1a
allow pwauth_t self:process setrlimit;
1ec3d1a
1ec3d1a
allow pwauth_t self:fifo_file manage_fifo_file_perms;
1ec3d1a
allow pwauth_t self:unix_stream_socket create_stream_socket_perms;
1ec3d1a
1ec3d1a
manage_files_pattern(pwauth_t, pwauth_var_run_t, pwauth_var_run_t)
1ec3d1a
files_pid_filetrans(pwauth_t, pwauth_var_run_t, file)
1ec3d1a
1ec3d1a
domain_use_interactive_fds(pwauth_t)
1ec3d1a
1ec3d1a
1ec3d1a
auth_domtrans_chkpwd(pwauth_t)
1ec3d1a
auth_use_nsswitch(pwauth_t)
1ec3d1a
auth_read_shadow(pwauth_t)
1ec3d1a
1ec3d1a
init_read_utmp(pwauth_t)
1ec3d1a
1ec3d1a
logging_send_syslog_msg(pwauth_t)
1ec3d1a
logging_send_audit_msgs(pwauth_t)