2017-02-24 01:03:23 +00:00
|
|
|
policy_module(authlogin, 2.10.2)
|
2005-04-26 17:00:25 +00:00
|
|
|
|
2005-04-19 20:45:24 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
2005-05-13 14:37:13 +00:00
|
|
|
|
2012-07-10 12:43:38 +00:00
|
|
|
|
|
|
|
## <desc>
|
|
|
|
## <p>
|
|
|
|
## Allow users to resolve user passwd entries directly from ldap rather then using a sssd server
|
|
|
|
## </p>
|
|
|
|
## </desc>
|
|
|
|
gen_tunable(authlogin_nsswitch_use_ldap, false)
|
|
|
|
|
2005-05-13 14:37:13 +00:00
|
|
|
attribute can_read_shadow_passwords;
|
|
|
|
attribute can_write_shadow_passwords;
|
|
|
|
attribute can_relabelto_shadow_passwords;
|
2012-07-10 12:43:31 +00:00
|
|
|
attribute nsswitch_domain;
|
2005-05-13 14:37:13 +00:00
|
|
|
|
2009-06-12 15:30:15 +00:00
|
|
|
type auth_cache_t;
|
|
|
|
logging_log_file(auth_cache_t)
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
type chkpwd_t, can_read_shadow_passwords;
|
2005-04-19 20:45:24 +00:00
|
|
|
type chkpwd_exec_t;
|
2008-11-05 16:10:46 +00:00
|
|
|
typealias chkpwd_t alias { user_chkpwd_t staff_chkpwd_t sysadm_chkpwd_t };
|
|
|
|
typealias chkpwd_t alias { auditadm_chkpwd_t secadm_chkpwd_t };
|
|
|
|
application_domain(chkpwd_t, chkpwd_exec_t)
|
|
|
|
role system_r types chkpwd_t;
|
2005-04-19 20:45:24 +00:00
|
|
|
|
|
|
|
type faillog_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_log_file(faillog_t)
|
2005-04-19 20:45:24 +00:00
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
type lastlog_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_log_file(lastlog_t)
|
2005-04-14 20:18:17 +00:00
|
|
|
|
2006-10-04 17:25:34 +00:00
|
|
|
type login_exec_t;
|
2007-07-19 18:57:48 +00:00
|
|
|
application_executable_file(login_exec_t)
|
2005-04-19 20:45:24 +00:00
|
|
|
|
2005-09-26 20:26:32 +00:00
|
|
|
type pam_console_t;
|
2005-05-02 21:02:14 +00:00
|
|
|
type pam_console_exec_t;
|
2009-06-26 14:40:13 +00:00
|
|
|
init_system_domain(pam_console_t, pam_console_exec_t)
|
2005-05-03 21:04:20 +00:00
|
|
|
role system_r types pam_console_t;
|
|
|
|
|
2005-07-13 20:48:51 +00:00
|
|
|
type pam_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
domain_type(pam_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
role system_r types pam_t;
|
2005-04-19 20:45:24 +00:00
|
|
|
|
2005-05-02 21:02:14 +00:00
|
|
|
type pam_exec_t;
|
2009-06-26 14:40:13 +00:00
|
|
|
domain_entry_file(pam_t, pam_exec_t)
|
2005-05-02 21:02:14 +00:00
|
|
|
|
2005-04-19 20:45:24 +00:00
|
|
|
type pam_tmp_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
files_tmp_file(pam_tmp_t)
|
2005-04-19 20:45:24 +00:00
|
|
|
|
2005-07-13 20:48:51 +00:00
|
|
|
type pam_var_console_t;
|
2011-03-31 17:29:59 +00:00
|
|
|
files_pid_file(pam_var_console_t)
|
2005-04-19 20:45:24 +00:00
|
|
|
|
|
|
|
type pam_var_run_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
files_pid_file(pam_var_run_t)
|
2005-04-19 20:45:24 +00:00
|
|
|
|
|
|
|
type shadow_t;
|
2012-04-25 14:25:42 +00:00
|
|
|
files_auth_file(shadow_t)
|
2005-04-19 20:45:24 +00:00
|
|
|
neverallow ~can_read_shadow_passwords shadow_t:file read;
|
2005-05-09 18:50:20 +00:00
|
|
|
neverallow ~can_write_shadow_passwords shadow_t:file { create write };
|
|
|
|
neverallow ~can_relabelto_shadow_passwords shadow_t:file relabelto;
|
2005-04-19 20:45:24 +00:00
|
|
|
|
2007-10-29 22:08:34 +00:00
|
|
|
type updpwd_t;
|
|
|
|
type updpwd_exec_t;
|
|
|
|
domain_type(updpwd_t)
|
2009-06-26 14:40:13 +00:00
|
|
|
domain_entry_file(updpwd_t, updpwd_exec_t)
|
2009-06-18 13:36:40 +00:00
|
|
|
domain_obj_id_change_exemption(updpwd_t)
|
2007-10-29 22:08:34 +00:00
|
|
|
role system_r types updpwd_t;
|
|
|
|
|
2005-07-13 20:48:51 +00:00
|
|
|
type utempter_t;
|
2005-04-19 20:45:24 +00:00
|
|
|
type utempter_exec_t;
|
2009-06-26 14:40:13 +00:00
|
|
|
application_domain(utempter_t, utempter_exec_t)
|
2005-04-19 20:45:24 +00:00
|
|
|
|
2005-11-15 16:34:10 +00:00
|
|
|
#
|
|
|
|
# var_auth_t is the type of /var/lib/auth, usually
|
|
|
|
# used for auth data in pam_able
|
|
|
|
#
|
|
|
|
type var_auth_t;
|
|
|
|
files_type(var_auth_t)
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
type wtmp_t;
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_log_file(wtmp_t)
|
2005-04-19 20:45:24 +00:00
|
|
|
|
2017-02-24 01:03:23 +00:00
|
|
|
optional_policy(`
|
|
|
|
systemd_tmpfilesd_managed(faillog_t, file)
|
|
|
|
') systemd_tmpfilesd_managed(var_auth_t, dir)
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Check password local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow chkpwd_t self:capability { dac_override setuid };
|
|
|
|
dontaudit chkpwd_t self:capability sys_tty_config;
|
2011-02-16 06:27:51 +00:00
|
|
|
allow chkpwd_t self:process { getattr signal };
|
2008-11-05 16:10:46 +00:00
|
|
|
|
|
|
|
allow chkpwd_t shadow_t:file read_file_perms;
|
|
|
|
files_list_etc(chkpwd_t)
|
|
|
|
|
2011-02-16 06:27:51 +00:00
|
|
|
kernel_read_crypto_sysctls(chkpwd_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
# is_selinux_enabled
|
|
|
|
kernel_read_system_state(chkpwd_t)
|
|
|
|
|
|
|
|
domain_dontaudit_use_interactive_fds(chkpwd_t)
|
|
|
|
|
|
|
|
dev_read_rand(chkpwd_t)
|
|
|
|
dev_read_urand(chkpwd_t)
|
2013-11-09 09:44:46 +00:00
|
|
|
dev_search_sysfs(chkpwd_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
|
|
|
|
files_read_etc_files(chkpwd_t)
|
|
|
|
# for nscd
|
|
|
|
files_dontaudit_search_var(chkpwd_t)
|
|
|
|
|
|
|
|
fs_dontaudit_getattr_xattr_fs(chkpwd_t)
|
|
|
|
|
2010-03-18 12:59:25 +00:00
|
|
|
term_dontaudit_use_console(chkpwd_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
term_dontaudit_use_unallocated_ttys(chkpwd_t)
|
|
|
|
term_dontaudit_use_generic_ptys(chkpwd_t)
|
2010-03-18 12:59:25 +00:00
|
|
|
term_dontaudit_use_all_ptys(chkpwd_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
|
|
|
|
auth_use_nsswitch(chkpwd_t)
|
|
|
|
|
|
|
|
logging_send_audit_msgs(chkpwd_t)
|
|
|
|
logging_send_syslog_msg(chkpwd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(chkpwd_t)
|
|
|
|
|
|
|
|
seutil_read_config(chkpwd_t)
|
|
|
|
seutil_dontaudit_use_newrole_fds(chkpwd_t)
|
|
|
|
|
|
|
|
userdom_use_user_terminals(chkpwd_t)
|
|
|
|
|
|
|
|
ifdef(`distro_ubuntu',`
|
|
|
|
optional_policy(`
|
|
|
|
unconfined_domain(chkpwd_t)
|
|
|
|
')
|
|
|
|
')
|
|
|
|
|
2010-03-18 12:59:25 +00:00
|
|
|
optional_policy(`
|
|
|
|
# apache leaks file descriptors
|
|
|
|
apache_dontaudit_rw_tcp_sockets(chkpwd_t)
|
|
|
|
')
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
optional_policy(`
|
|
|
|
kerberos_use(chkpwd_t)
|
|
|
|
')
|
2006-08-22 19:56:59 +00:00
|
|
|
|
2010-03-18 12:59:25 +00:00
|
|
|
optional_policy(`
|
|
|
|
nis_authenticate(chkpwd_t)
|
|
|
|
')
|
|
|
|
|
2005-04-19 20:45:24 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
# PAM local policy
|
2005-04-19 20:45:24 +00:00
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2005-09-01 20:13:42 +00:00
|
|
|
allow pam_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
|
2005-05-03 20:23:33 +00:00
|
|
|
dontaudit pam_t self:capability sys_tty_config;
|
|
|
|
|
|
|
|
allow pam_t self:fd use;
|
2005-06-09 14:50:48 +00:00
|
|
|
allow pam_t self:fifo_file rw_file_perms;
|
2011-02-28 14:22:26 +00:00
|
|
|
allow pam_t self:unix_dgram_socket create_socket_perms;
|
2005-06-09 14:50:48 +00:00
|
|
|
allow pam_t self:unix_stream_socket rw_stream_socket_perms;
|
2005-05-03 20:23:33 +00:00
|
|
|
allow pam_t self:unix_dgram_socket sendto;
|
|
|
|
allow pam_t self:unix_stream_socket connectto;
|
2005-06-09 14:50:48 +00:00
|
|
|
allow pam_t self:shm create_shm_perms;
|
|
|
|
allow pam_t self:sem create_sem_perms;
|
|
|
|
allow pam_t self:msgq create_msgq_perms;
|
2005-05-03 20:23:33 +00:00
|
|
|
allow pam_t self:msg { send receive };
|
|
|
|
|
2009-06-26 14:40:13 +00:00
|
|
|
delete_files_pattern(pam_t, pam_var_run_t, pam_var_run_t)
|
|
|
|
read_files_pattern(pam_t, pam_var_run_t, pam_var_run_t)
|
2006-08-17 15:35:14 +00:00
|
|
|
files_list_pids(pam_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2006-08-17 15:35:14 +00:00
|
|
|
allow pam_t pam_tmp_t:dir manage_dir_perms;
|
|
|
|
allow pam_t pam_tmp_t:file manage_file_perms;
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(pam_t, pam_tmp_t, { file dir })
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2007-10-29 22:08:34 +00:00
|
|
|
auth_use_nsswitch(pam_t)
|
|
|
|
|
2005-05-03 20:23:33 +00:00
|
|
|
kernel_read_system_state(pam_t)
|
|
|
|
|
2009-08-05 13:51:47 +00:00
|
|
|
files_read_etc_files(pam_t)
|
|
|
|
|
2005-06-27 16:30:55 +00:00
|
|
|
fs_search_auto_mountpoints(pam_t)
|
|
|
|
|
2007-10-29 22:08:34 +00:00
|
|
|
miscfiles_read_localization(pam_t)
|
|
|
|
|
2010-02-11 19:20:10 +00:00
|
|
|
term_use_all_ttys(pam_t)
|
|
|
|
term_use_all_ptys(pam_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2006-01-18 18:08:39 +00:00
|
|
|
init_dontaudit_rw_utmp(pam_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_send_syslog_msg(pam_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2008-02-05 18:24:43 +00:00
|
|
|
ifdef(`distro_ubuntu',`
|
|
|
|
optional_policy(`
|
|
|
|
unconfined_domain(pam_t)
|
|
|
|
')
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-03-02 23:41:11 +00:00
|
|
|
locallogin_use_fds(pam_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
')
|
|
|
|
|
2005-05-03 21:04:20 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# PAM console local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow pam_console_t self:capability { chown fowner fsetid };
|
|
|
|
dontaudit pam_console_t self:capability sys_tty_config;
|
|
|
|
|
|
|
|
allow pam_console_t self:process { sigchld sigkill sigstop signull signal };
|
|
|
|
|
|
|
|
# for /var/run/console.lock checking
|
2009-06-26 14:40:13 +00:00
|
|
|
read_files_pattern(pam_console_t, pam_var_console_t, pam_var_console_t)
|
|
|
|
read_lnk_files_pattern(pam_console_t, pam_var_console_t, pam_var_console_t)
|
2005-10-13 20:59:36 +00:00
|
|
|
dontaudit pam_console_t pam_var_console_t:file write;
|
2005-05-03 21:04:20 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(pam_console_t)
|
2006-03-02 23:41:11 +00:00
|
|
|
kernel_use_fds(pam_console_t)
|
2014-01-16 16:24:25 +00:00
|
|
|
kernel_dontaudit_search_unlabeled(pam_console_t)
|
2005-09-13 13:06:07 +00:00
|
|
|
# Read /proc/meminfo
|
|
|
|
kernel_read_system_state(pam_console_t)
|
2005-05-03 21:04:20 +00:00
|
|
|
|
2005-06-16 20:33:51 +00:00
|
|
|
dev_read_sysfs(pam_console_t)
|
2006-01-31 16:08:56 +00:00
|
|
|
dev_getattr_apm_bios_dev(pam_console_t)
|
|
|
|
dev_setattr_apm_bios_dev(pam_console_t)
|
2006-02-22 21:21:26 +00:00
|
|
|
dev_getattr_dri_dev(pam_console_t)
|
|
|
|
dev_setattr_dri_dev(pam_console_t)
|
2007-10-29 22:08:34 +00:00
|
|
|
dev_getattr_input_dev(pam_console_t)
|
|
|
|
dev_setattr_input_dev(pam_console_t)
|
2006-01-31 16:08:56 +00:00
|
|
|
dev_getattr_framebuffer_dev(pam_console_t)
|
|
|
|
dev_setattr_framebuffer_dev(pam_console_t)
|
2006-03-30 15:59:39 +00:00
|
|
|
dev_getattr_generic_usb_dev(pam_console_t)
|
|
|
|
dev_setattr_generic_usb_dev(pam_console_t)
|
2006-01-31 16:08:56 +00:00
|
|
|
dev_getattr_misc_dev(pam_console_t)
|
|
|
|
dev_setattr_misc_dev(pam_console_t)
|
|
|
|
dev_getattr_mouse_dev(pam_console_t)
|
|
|
|
dev_setattr_mouse_dev(pam_console_t)
|
|
|
|
dev_getattr_power_mgmt_dev(pam_console_t)
|
|
|
|
dev_setattr_power_mgmt_dev(pam_console_t)
|
2007-10-29 22:08:34 +00:00
|
|
|
dev_getattr_printer_dev(pam_console_t)
|
|
|
|
dev_setattr_printer_dev(pam_console_t)
|
2006-01-31 16:08:56 +00:00
|
|
|
dev_getattr_scanner_dev(pam_console_t)
|
|
|
|
dev_setattr_scanner_dev(pam_console_t)
|
|
|
|
dev_getattr_sound_dev(pam_console_t)
|
|
|
|
dev_setattr_sound_dev(pam_console_t)
|
2005-06-20 17:41:29 +00:00
|
|
|
dev_getattr_video_dev(pam_console_t)
|
|
|
|
dev_setattr_video_dev(pam_console_t)
|
2005-09-16 21:20:37 +00:00
|
|
|
dev_getattr_xserver_misc_dev(pam_console_t)
|
|
|
|
dev_setattr_xserver_misc_dev(pam_console_t)
|
2006-04-19 15:25:22 +00:00
|
|
|
dev_read_urand(pam_console_t)
|
2005-06-16 20:33:51 +00:00
|
|
|
|
2009-08-05 13:51:47 +00:00
|
|
|
files_read_etc_files(pam_console_t)
|
|
|
|
files_search_pids(pam_console_t)
|
|
|
|
files_list_mnt(pam_console_t)
|
|
|
|
# read /etc/mtab
|
|
|
|
files_read_etc_runtime_files(pam_console_t)
|
|
|
|
|
|
|
|
fs_list_auto_mountpoints(pam_console_t)
|
|
|
|
fs_list_noxattr_fs(pam_console_t)
|
|
|
|
fs_getattr_all_fs(pam_console_t)
|
|
|
|
|
2007-08-20 18:26:08 +00:00
|
|
|
mls_file_read_all_levels(pam_console_t)
|
|
|
|
mls_file_write_all_levels(pam_console_t)
|
2006-04-19 15:25:22 +00:00
|
|
|
|
2006-02-02 21:08:12 +00:00
|
|
|
storage_getattr_fixed_disk_dev(pam_console_t)
|
|
|
|
storage_setattr_fixed_disk_dev(pam_console_t)
|
|
|
|
storage_getattr_removable_dev(pam_console_t)
|
|
|
|
storage_setattr_removable_dev(pam_console_t)
|
|
|
|
storage_getattr_scsi_generic_dev(pam_console_t)
|
|
|
|
storage_setattr_scsi_generic_dev(pam_console_t)
|
2005-05-03 21:04:20 +00:00
|
|
|
|
2005-06-10 01:01:13 +00:00
|
|
|
term_use_console(pam_console_t)
|
2010-02-11 19:20:10 +00:00
|
|
|
term_use_all_ttys(pam_console_t)
|
|
|
|
term_use_all_ptys(pam_console_t)
|
2005-09-13 13:06:07 +00:00
|
|
|
term_setattr_console(pam_console_t)
|
2005-06-10 01:01:13 +00:00
|
|
|
term_getattr_unallocated_ttys(pam_console_t)
|
|
|
|
term_setattr_unallocated_ttys(pam_console_t)
|
2006-07-28 15:13:58 +00:00
|
|
|
term_use_unallocated_ttys(pam_console_t)
|
2005-05-03 21:04:20 +00:00
|
|
|
|
2005-10-13 20:59:36 +00:00
|
|
|
auth_use_nsswitch(pam_console_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(pam_console_t)
|
2005-05-03 21:04:20 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(pam_console_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(pam_console_t)
|
2005-06-16 20:33:51 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_send_syslog_msg(pam_console_t)
|
2005-05-03 21:04:20 +00:00
|
|
|
|
2006-04-19 15:25:22 +00:00
|
|
|
miscfiles_read_localization(pam_console_t)
|
2010-09-09 16:14:48 +00:00
|
|
|
miscfiles_read_generic_certs(pam_console_t)
|
2005-09-26 20:26:32 +00:00
|
|
|
|
2005-06-14 20:48:34 +00:00
|
|
|
seutil_read_file_contexts(pam_console_t)
|
2005-05-03 21:04:20 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(pam_console_t)
|
2005-05-24 15:55:57 +00:00
|
|
|
|
2008-02-05 18:24:43 +00:00
|
|
|
ifdef(`distro_ubuntu',`
|
|
|
|
optional_policy(`
|
|
|
|
unconfined_domain(pam_console_t)
|
|
|
|
')
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-08-17 21:28:31 +00:00
|
|
|
gpm_getattr_gpmctl(pam_console_t)
|
|
|
|
gpm_setattr_gpmctl(pam_console_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-03-02 23:41:11 +00:00
|
|
|
hotplug_use_fds(pam_console_t)
|
2005-06-13 17:35:46 +00:00
|
|
|
hotplug_dontaudit_search_config(pam_console_t)
|
2005-05-04 17:01:46 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-06-29 14:26:41 +00:00
|
|
|
seutil_sigchld_newrole(pam_console_t)
|
2005-05-03 21:04:20 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-06-13 17:35:46 +00:00
|
|
|
udev_read_db(pam_console_t)
|
2005-05-03 21:04:20 +00:00
|
|
|
')
|
|
|
|
|
2006-04-03 19:49:47 +00:00
|
|
|
optional_policy(`
|
|
|
|
xserver_read_xdm_pid(pam_console_t)
|
2007-10-29 22:08:34 +00:00
|
|
|
xserver_dontaudit_write_log(pam_console_t)
|
2005-05-03 21:04:20 +00:00
|
|
|
')
|
|
|
|
|
2007-10-29 22:08:34 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# updpwd local policy
|
|
|
|
#
|
|
|
|
|
2009-06-18 13:36:40 +00:00
|
|
|
allow updpwd_t self:capability { chown dac_override };
|
2007-10-29 22:08:34 +00:00
|
|
|
allow updpwd_t self:process setfscreate;
|
2008-10-16 16:09:20 +00:00
|
|
|
allow updpwd_t self:fifo_file rw_fifo_file_perms;
|
2007-10-29 22:08:34 +00:00
|
|
|
allow updpwd_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
allow updpwd_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
|
|
|
|
kernel_read_system_state(updpwd_t)
|
|
|
|
|
2009-06-18 13:36:40 +00:00
|
|
|
dev_read_urand(updpwd_t)
|
|
|
|
|
2007-10-29 22:08:34 +00:00
|
|
|
files_manage_etc_files(updpwd_t)
|
|
|
|
|
|
|
|
term_dontaudit_use_console(updpwd_t)
|
|
|
|
term_dontaudit_use_unallocated_ttys(updpwd_t)
|
|
|
|
|
|
|
|
auth_manage_shadow(updpwd_t)
|
|
|
|
auth_use_nsswitch(updpwd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(updpwd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(updpwd_t)
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_use_user_terminals(updpwd_t)
|
|
|
|
|
2008-02-05 18:24:43 +00:00
|
|
|
ifdef(`distro_ubuntu',`
|
|
|
|
optional_policy(`
|
|
|
|
unconfined_domain(updpwd_t)
|
|
|
|
')
|
|
|
|
')
|
|
|
|
|
2005-05-03 20:23:33 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Utempter local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow utempter_t self:capability setgid;
|
2005-06-10 01:01:13 +00:00
|
|
|
allow utempter_t self:unix_stream_socket create_stream_socket_perms;
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
allow utempter_t wtmp_t:file rw_file_perms;
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2005-10-13 20:59:36 +00:00
|
|
|
dev_read_urand(utempter_t)
|
|
|
|
|
2009-08-05 13:51:47 +00:00
|
|
|
files_read_etc_files(utempter_t)
|
|
|
|
|
2010-02-11 19:20:10 +00:00
|
|
|
term_getattr_all_ttys(utempter_t)
|
|
|
|
term_getattr_all_ptys(utempter_t)
|
|
|
|
term_dontaudit_use_all_ttys(utempter_t)
|
|
|
|
term_dontaudit_use_all_ptys(utempter_t)
|
2005-06-10 01:01:13 +00:00
|
|
|
term_dontaudit_use_ptmx(utempter_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2006-01-18 18:08:39 +00:00
|
|
|
init_rw_utmp(utempter_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(utempter_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_search_logs(utempter_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_use_user_terminals(utempter_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
# Allow utemper to write to /tmp/.xses-*
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_write_user_tmp_files(utempter_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2008-02-05 18:24:43 +00:00
|
|
|
ifdef(`distro_ubuntu',`
|
|
|
|
optional_policy(`
|
|
|
|
unconfined_domain(utempter_t)
|
|
|
|
')
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2012-12-17 20:06:29 +00:00
|
|
|
nscd_use(utempter_t)
|
2005-07-13 20:48:51 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-07-06 17:00:29 +00:00
|
|
|
xserver_use_xdm_fds(utempter_t)
|
|
|
|
xserver_rw_xdm_pipes(utempter_t)
|
2005-05-03 20:23:33 +00:00
|
|
|
')
|
2012-07-10 12:43:31 +00:00
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
|
|
|
# nsswitch_domain local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
files_list_var_lib(nsswitch_domain)
|
|
|
|
|
|
|
|
# read /etc/nsswitch.conf
|
|
|
|
files_read_etc_files(nsswitch_domain)
|
|
|
|
|
|
|
|
sysnet_dns_name_resolve(nsswitch_domain)
|
2012-07-10 12:43:38 +00:00
|
|
|
|
|
|
|
tunable_policy(`authlogin_nsswitch_use_ldap',`
|
|
|
|
miscfiles_read_generic_certs(nsswitch_domain)
|
|
|
|
sysnet_use_ldap(nsswitch_domain)
|
|
|
|
')
|
2012-07-10 12:43:31 +00:00
|
|
|
|
|
|
|
optional_policy(`
|
2012-07-10 12:43:38 +00:00
|
|
|
tunable_policy(`authlogin_nsswitch_use_ldap',`
|
|
|
|
ldap_stream_connect(nsswitch_domain)
|
|
|
|
')
|
2012-07-10 12:43:31 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2012-07-10 12:43:38 +00:00
|
|
|
avahi_stream_connect(nsswitch_domain)
|
2012-07-10 12:43:31 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
likewise_stream_connect_lsassd(nsswitch_domain)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
kerberos_use(nsswitch_domain)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
nis_use_ypbind(nsswitch_domain)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2012-12-17 20:06:29 +00:00
|
|
|
nscd_use(nsswitch_domain)
|
2012-07-10 12:43:31 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
nslcd_stream_connect(nsswitch_domain)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
sssd_stream_connect(nsswitch_domain)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
samba_stream_connect_winbind(nsswitch_domain)
|
|
|
|
samba_read_var_files(nsswitch_domain)
|
|
|
|
samba_dontaudit_write_var_files(nsswitch_domain)
|
|
|
|
')
|