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