Chris PeBenito 0fbfa5
#DESC Pam - PAM 
Chris PeBenito 0fbfa5
# X-Debian-Packages:
Chris PeBenito 0fbfa5
#
Chris PeBenito 0fbfa5
# /sbin/pam_timestamp_check
Chris PeBenito 0fbfa5
type pam_exec_t, file_type, exec_type, sysadmfile;
Chris PeBenito 0fbfa5
type pam_t, domain, privlog, nscd_client_domain;
Chris PeBenito 0fbfa5
general_domain_access(pam_t);
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
type pam_var_run_t, file_type, sysadmfile;
Chris PeBenito 0fbfa5
allow pam_t pam_var_run_t:dir { search getattr read write remove_name };
Chris PeBenito 0fbfa5
allow pam_t pam_var_run_t:file { getattr read unlink };
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
role system_r types pam_t;
Chris PeBenito 0fbfa5
in_user_role(pam_t)
Chris PeBenito 0fbfa5
domain_auto_trans(userdomain, pam_exec_t, pam_t)
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
uses_shlib(pam_t)
Chris PeBenito 0fbfa5
# Read the devpts root directory.
Chris PeBenito 0fbfa5
allow pam_t devpts_t:dir r_dir_perms;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Access terminals.
Chris PeBenito 0fbfa5
allow pam_t { ttyfile ptyfile devtty_t }:chr_file rw_file_perms;
Chris PeBenito 0fbfa5
ifdef(`gnome-pty-helper.te', `allow pam_t gphdomain:fd use;')
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
allow pam_t proc_t:dir search;
Chris PeBenito 0fbfa5
allow pam_t proc_t:{ lnk_file file } { getattr read };
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Read the /etc/nsswitch file
Chris PeBenito 0fbfa5
allow pam_t etc_t:file r_file_perms;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
# Read /var/run.
Chris PeBenito 0fbfa5
allow pam_t { var_t var_run_t }:dir r_dir_perms;
Chris PeBenito 0fbfa5
tmp_domain(pam)
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
allow pam_t local_login_t:fd use;
Chris PeBenito 0fbfa5
dontaudit pam_t self:capability sys_tty_config;
Chris PeBenito 0fbfa5
Chris PeBenito 0fbfa5
allow initrc_t pam_var_run_t:dir rw_dir_perms;
Chris PeBenito 0fbfa5
allow initrc_t pam_var_run_t:file { getattr read unlink };
Chris PeBenito 0fbfa5
dontaudit pam_t initrc_var_run_t:file { read write };