2005-05-24 15:55:57 +00:00
|
|
|
## <module name="authlogin" layer="system">
|
|
|
|
## <summary>Common policy for authentication and user login.</summary>
|
2005-04-20 19:07:16 +00:00
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <interface name="authlogin_per_userdomain_template">
|
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## ...
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="userdomain_prefix">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
|
2005-04-19 20:45:54 +00:00
|
|
|
#######################################
|
|
|
|
#
|
|
|
|
# Per user domain template for this module
|
|
|
|
#
|
|
|
|
# authlogin_per_userdomain_template(userdomain_prefix)
|
|
|
|
#
|
|
|
|
define(`authlogin_per_userdomain_template',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-04-19 20:45:54 +00:00
|
|
|
|
2005-06-03 12:25:14 +00:00
|
|
|
type $1_chkpwd_t, can_read_shadow_passwords; # , nscd_client_domain;
|
2005-06-13 17:35:46 +00:00
|
|
|
domain_type($1_chkpwd_t)
|
|
|
|
domain_entry_file($1_chkpwd_t,chkpwd_exec_t)
|
2005-06-03 12:25:14 +00:00
|
|
|
role $1_r types $1_chkpwd_t;
|
|
|
|
role $1_r types system_chkpwd_t;
|
2005-04-19 20:45:54 +00:00
|
|
|
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1_chkpwd_t self:capability setuid;
|
|
|
|
allow $1_chkpwd_t self:process getattr;
|
2005-04-19 20:45:54 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
files_read_generic_etc_files_directory($1_chkpwd_t)
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1_chkpwd_t shadow_t:file { getattr read };
|
2005-05-09 21:06:51 +00:00
|
|
|
|
2005-06-03 12:25:14 +00:00
|
|
|
# is_selinux_enabled
|
|
|
|
kernel_read_system_state($1_chkpwd_t)
|
2005-05-09 21:06:51 +00:00
|
|
|
|
2005-06-10 01:01:13 +00:00
|
|
|
fs_dontaudit_getattr_xattr_fs($1_chkpwd_t)
|
2005-05-09 21:06:51 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
domain_use_wide_inherit_fd($1_chkpwd_t)
|
2005-04-19 20:45:54 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
libs_use_ld_so($1_chkpwd_t)
|
|
|
|
libs_use_shared_libs($1_chkpwd_t)
|
2005-05-09 21:06:51 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
files_read_generic_etc_files($1_chkpwd_t)
|
2005-06-03 12:25:14 +00:00
|
|
|
# for nscd
|
2005-06-13 17:35:46 +00:00
|
|
|
files_dontaudit_search_var($1_chkpwd_t)
|
2005-05-09 21:06:51 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_send_syslog_msg($1_chkpwd_t)
|
2005-05-09 21:06:51 +00:00
|
|
|
|
2005-06-03 12:25:14 +00:00
|
|
|
miscfiles_read_localization($1_chkpwd_t)
|
2005-05-09 21:06:51 +00:00
|
|
|
|
2005-06-14 20:48:34 +00:00
|
|
|
seutil_read_config($1_chkpwd_t)
|
2005-04-19 20:45:54 +00:00
|
|
|
|
2005-06-03 12:25:14 +00:00
|
|
|
#can_ypbind($1_chkpwd_t)
|
|
|
|
#can_kerberos($1_chkpwd_t)
|
|
|
|
#can_ldap($1_chkpwd_t)
|
2005-05-09 19:55:01 +00:00
|
|
|
|
2005-06-03 12:25:14 +00:00
|
|
|
# Transition from the user domain to this domain.
|
2005-06-10 01:01:13 +00:00
|
|
|
domain_auto_trans($1_t,chkpwd_exec_t,$1_chkpwd_t)
|
2005-04-19 20:45:54 +00:00
|
|
|
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1_chkpwd_t $1_t:fd use;
|
|
|
|
allow $1_t $1_chkpwd_t:fd use;
|
|
|
|
allow $1_chkpwd_t $1_t:fifo_file rw_file_perms;
|
|
|
|
allow $1_chkpwd_t $1_t:process sigchld;
|
2005-04-19 20:45:54 +00:00
|
|
|
|
2005-06-03 12:25:14 +00:00
|
|
|
# Write to the user domain tty.
|
|
|
|
#userdomain_use_$1_terminal($1_chkpwd_t)
|
|
|
|
#userdomain_use_$1_pty($1_chkpwd_t)
|
2005-04-19 20:45:54 +00:00
|
|
|
|
2005-06-03 12:25:14 +00:00
|
|
|
# Inherit and use descriptors from gnome-pty-helper.
|
|
|
|
#ifdef(`gnome-pty-helper.te',`allow $1_chkpwd_t $1_gph_t:fd use;')
|
2005-05-09 21:06:51 +00:00
|
|
|
|
2005-06-03 12:25:14 +00:00
|
|
|
tunable_policy(`use_dns',`
|
2005-06-09 14:50:48 +00:00
|
|
|
allow $1_chkpwd_t self:udp_socket create_socket_perms;
|
2005-06-10 01:01:13 +00:00
|
|
|
corenet_udp_sendrecv_all_if($1_chkpwd_t)
|
|
|
|
corenet_raw_sendrecv_all_if($1_chkpwd_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes($1_chkpwd_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes($1_chkpwd_t)
|
|
|
|
corenet_udp_bind_all_nodes($1_chkpwd_t)
|
|
|
|
corenet_udp_sendrecv_dns_port($1_chkpwd_t)
|
2005-06-13 17:35:46 +00:00
|
|
|
sysnet_read_config($1_chkpwd_t)
|
2005-06-03 12:25:14 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`selinux.te',`
|
2005-06-14 20:48:34 +00:00
|
|
|
seutil_use_newrole_fd($1_chkpwd_t)
|
2005-06-03 12:25:14 +00:00
|
|
|
')
|
2005-05-09 19:55:01 +00:00
|
|
|
|
|
|
|
') dnl end authlogin_per_userdomain_template
|
2005-04-19 20:45:54 +00:00
|
|
|
|
|
|
|
define(`authlogin_per_userdomain_template_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute can_read_shadow_passwords;
|
|
|
|
|
|
|
|
type chkpwd_exec_t, system_chkpwd_t, shadow_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class file rx_file_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
class process { getattr transition sigchld };
|
|
|
|
class capability setuid;
|
2005-06-09 14:50:48 +00:00
|
|
|
class unix_stream_socket { create read getattr write setattr append bind connect getopt setopt shutdown };
|
2005-06-03 12:25:14 +00:00
|
|
|
class unix_dgram_socket { create read getattr write setattr append bind connect getopt setopt shutdown };
|
|
|
|
class fd use;
|
|
|
|
class fifo_file rw_file_perms;
|
2005-04-19 20:45:54 +00:00
|
|
|
')
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_login_entry_type">
|
2005-06-09 14:50:48 +00:00
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## ...
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
|
2005-04-28 19:50:58 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_login_entry_type(domain)
|
2005-04-28 19:50:58 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_login_entry_type',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
domain_entry_file($1,login_exec_t)
|
2005-04-28 19:50:58 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_login_entry_type_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type login_exec_t;
|
2005-04-28 19:50:58 +00:00
|
|
|
')
|
|
|
|
|
2005-05-24 20:45:27 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_domtrans_login_program">
|
2005-05-24 20:45:27 +00:00
|
|
|
## <description>
|
|
|
|
## Execute a login_program in the target domain.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <parameter name="target_domain">
|
|
|
|
## The type of the login_program process.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_domtrans_login_program',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
# FIXME: search bin_t
|
2005-06-09 14:50:48 +00:00
|
|
|
allow $1 login_exec_t:file rx_file_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1 $2:process transition;
|
|
|
|
type_transition $1 login_exec_t:process $2;
|
|
|
|
dontaudit $1 $2:process { noatsecure siginh rlimitinh };
|
|
|
|
|
|
|
|
allow $1 $2:fd use;
|
|
|
|
allow $2 $1:fd use;
|
|
|
|
allow $2 $1:fifo_file rw_file_perms;
|
|
|
|
allow $2 $1:process sigchld;
|
2005-05-24 20:45:27 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_domtrans_login_program_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type login_exec_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class file rx_file_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
class process { transition noatsecure siginh rlimitinh sigchld };
|
|
|
|
class fd use;
|
|
|
|
class fifo_file rw_file_perms;
|
2005-05-24 20:45:27 +00:00
|
|
|
')
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_domtrans_chk_passwd">
|
2005-06-09 14:50:48 +00:00
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## ...
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-04-19 20:45:54 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_domtrans_chk_passwd(domain)
|
2005-04-19 20:45:54 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_domtrans_chk_passwd',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-08 13:12:00 +00:00
|
|
|
domain_auto_trans($1,chkpwd_exec_t,system_chkpwd_t)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
allow $1 system_chkpwd_t:fd use;
|
|
|
|
allow system_chkpwd_t $1:fd use;
|
|
|
|
allow system_chkpwd_t $1:fifo_file rw_file_perms;
|
|
|
|
allow system_chkpwd_t $1:process sigchld;
|
|
|
|
|
|
|
|
dontaudit $1 shadow_t:file { getattr read };
|
|
|
|
#allow $1_t sbin_t:dir search;
|
|
|
|
#can_ypbind($1_t)
|
|
|
|
#can_kerberos($1_t)
|
|
|
|
#can_ldap($1_t)
|
|
|
|
|
|
|
|
tunable_policy(`use_dns',`
|
2005-06-09 14:50:48 +00:00
|
|
|
allow $1 self:udp_socket create_socket_perms;
|
2005-06-10 01:01:13 +00:00
|
|
|
corenet_udp_sendrecv_all_if($1)
|
|
|
|
corenet_raw_sendrecv_all_if($1)
|
|
|
|
corenet_udp_sendrecv_all_nodes($1)
|
|
|
|
corenet_raw_sendrecv_all_nodes($1)
|
|
|
|
corenet_udp_bind_all_nodes($1)
|
|
|
|
corenet_udp_sendrecv_dns_port($1)
|
2005-06-13 17:35:46 +00:00
|
|
|
sysnet_read_config($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
')
|
|
|
|
')
|
2005-04-19 20:45:54 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_domtrans_chk_passwd_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type system_chkpwd_t, chkpwd_exec_t, shadow_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class file rx_file_perms;
|
|
|
|
class process { transition sigchld };
|
|
|
|
class udp_socket create_socket_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
class fd use;
|
|
|
|
class fifo_file rw_file_perms;
|
2005-04-19 20:45:54 +00:00
|
|
|
')
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_dontaudit_getattr_shadow">
|
2005-06-09 14:50:48 +00:00
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## ...
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-05-23 17:56:26 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_dontaudit_getattr_shadow(domain)
|
2005-05-23 17:56:26 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_dontaudit_getattr_shadow',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
dontaudit $1 shadow_t:file getattr;
|
2005-05-23 17:56:26 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_dontaudit_getattr_shadow_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type shadow_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class file stat_file_perms;
|
2005-05-23 17:56:26 +00:00
|
|
|
')
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_read_shadow">
|
2005-06-09 14:50:48 +00:00
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## ...
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-04-19 20:45:54 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_read_shadow(domain)
|
2005-04-19 20:45:54 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_read_shadow',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
files_read_generic_etc_files_directory($1)
|
2005-06-09 14:50:48 +00:00
|
|
|
allow $1 shadow_t:file r_file_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
typeattribute $1 can_read_shadow_passwords;
|
2005-04-19 20:45:54 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_read_shadow_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute can_read_shadow_passwords;
|
|
|
|
|
|
|
|
type shadow_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class file r_file_perms;
|
2005-04-19 20:45:54 +00:00
|
|
|
')
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_dontaudit_read_shadow">
|
2005-06-09 14:50:48 +00:00
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## ...
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-04-19 20:45:54 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_dontaudit_read_shadow(domain)
|
2005-04-19 20:45:54 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_dontaudit_read_shadow',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
dontaudit $1 shadow_t:file { getattr read };
|
2005-04-19 20:45:54 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_dontaudit_read_shadow_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type shadow_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class file r_file_perms;
|
2005-04-19 20:45:54 +00:00
|
|
|
')
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_rw_shadow">
|
2005-06-09 14:50:48 +00:00
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## ...
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-04-19 20:45:54 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_rw_shadow(domain)
|
2005-04-19 20:45:54 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_rw_shadow',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
files_read_generic_etc_files_directory($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1 shadow_t:file rw_file_perms;
|
|
|
|
typeattribute $1 can_read_shadow_passwords, can_write_shadow_passwords;
|
2005-04-19 20:45:54 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_rw_shadow_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute can_read_shadow_passwords, can_write_shadow_passwords;
|
|
|
|
|
|
|
|
type shadow_t;
|
|
|
|
class file rw_file_perms;
|
2005-04-19 20:45:54 +00:00
|
|
|
')
|
|
|
|
|
2005-05-09 18:50:20 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_manage_shadow(domain)
|
2005-05-09 18:50:20 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_manage_shadow',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
allow $1 shadow_t:file create_file_perms;
|
2005-06-13 17:35:46 +00:00
|
|
|
files_create_etc_config($1,shadow_t,file)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
typeattribute $1 can_read_shadow_passwords, can_write_shadow_passwords;
|
2005-05-09 18:50:20 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_manage_shadow_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute can_read_shadow_passwords, can_write_shadow_passwords;
|
|
|
|
|
|
|
|
type shadow_t;
|
|
|
|
|
|
|
|
class file create_file_perms;
|
2005-05-09 18:50:20 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_relabelto_shadow(domain)
|
2005-05-09 18:50:20 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_relabelto_shadow',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
files_search_etc($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1 shadow_t:file relabelto;
|
|
|
|
typeattribute $1 can_relabelto_shadow_passwords;
|
2005-05-09 18:50:20 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_relabelto_shadow_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
attribute can_relabelto_shadow_passwords;
|
|
|
|
|
|
|
|
type shadow_t;
|
|
|
|
|
|
|
|
class file relabelto;
|
2005-05-09 18:50:20 +00:00
|
|
|
')
|
|
|
|
|
2005-05-31 19:52:57 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_rw_faillog(domain)
|
2005-05-31 19:52:57 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_rw_faillog',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
allow $1 faillog_t:file rw_file_perms;
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_search_logs($1)
|
2005-05-31 19:52:57 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_rw_faillog_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type faillog_t;
|
|
|
|
|
|
|
|
class file rw_file_perms;
|
2005-05-31 19:52:57 +00:00
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_rw_lastlog(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_rw_lastlog',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_search_logs($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1 lastlog_t:file { getattr read write setattr };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_rw_lastlog_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type lastlog_t;
|
|
|
|
|
|
|
|
class file { getattr read write setattr };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
2005-05-02 18:41:20 +00:00
|
|
|
|
2005-05-24 15:55:57 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_domtrans_pam">
|
2005-05-24 15:55:57 +00:00
|
|
|
## <description>
|
|
|
|
## Execute pam programs in the pam domain.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
2005-05-04 17:01:46 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_domtrans_pam',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
domain_auto_trans($1,pam_exec_t,pam_t)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
allow $1 pam_t:fd use;
|
|
|
|
allow pam_t $1:fd use;
|
|
|
|
allow pam_t $1:fifo_file rw_file_perms;
|
|
|
|
allow pam_t $1:process sigchld;
|
2005-05-04 17:01:46 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_domtrans_pam_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type pam_t, pam_exec_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class file rx_file_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
class process { transition noatsecure siginh rlimitinh sigchld };
|
|
|
|
class fd
|
|
|
|
class fifo_file rw_file_perms;
|
2005-05-04 17:01:46 +00:00
|
|
|
')
|
|
|
|
|
2005-05-24 15:55:57 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_run_pam">
|
2005-05-24 15:55:57 +00:00
|
|
|
## <description>
|
|
|
|
## Execute pam programs in the PAM domain.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <parameter name="role">
|
|
|
|
## The role to allow the PAM domain.
|
|
|
|
## </parameter>
|
|
|
|
## <parameter name="terminal">
|
2005-06-09 17:23:53 +00:00
|
|
|
## The type of the terminal allow the PAM domain to use.
|
2005-05-24 15:55:57 +00:00
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_run_pam',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
auth_domtrans_pam($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
role $2 types pam_t;
|
2005-06-09 14:50:48 +00:00
|
|
|
allow pam_t $3:chr_file rw_file_perms;
|
2005-05-24 15:55:57 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_run_pam_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type pam_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class chr_file rw_file_perms;
|
2005-05-24 15:55:57 +00:00
|
|
|
')
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_exec_pam">
|
2005-06-09 14:50:48 +00:00
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## ...
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-05-04 17:01:46 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_exec_pam(domain)
|
2005-05-04 17:01:46 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_exec_pam',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-10 01:01:13 +00:00
|
|
|
can_exec($1,pam_exec_t)
|
2005-05-04 17:01:46 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_exec_pam_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type pam_exec_t;
|
|
|
|
|
|
|
|
class file { getattr read execute execute_no_trans };
|
2005-05-04 17:01:46 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 18:41:20 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_read_pam_pid(domain)
|
2005-05-02 18:41:20 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_read_pam_pid',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
files_search_var($1)
|
|
|
|
files_search_pids($1)
|
2005-06-09 14:50:48 +00:00
|
|
|
allow $1 pam_var_run_t:dir r_dir_perms;
|
|
|
|
allow $1 pam_var_run_t:file r_file_perms;
|
2005-05-02 18:41:20 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_read_pam_pid_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type pam_var_run_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-05-02 18:41:20 +00:00
|
|
|
')
|
2005-05-03 20:23:33 +00:00
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_delete_pam_pid">
|
2005-06-09 14:50:48 +00:00
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## ...
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_delete_pam_pid(domain)
|
2005-05-03 20:23:33 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_delete_pam_pid',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
files_search_var($1)
|
|
|
|
files_search_pids($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1 pam_var_run_t:dir { getattr search read write remove_name };
|
|
|
|
allow $1 pam_var_run_t:file { getattr unlink };
|
2005-05-03 20:23:33 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_delete_pam_pid_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type pam_var_run_t;
|
|
|
|
|
|
|
|
class dir { getattr search read write remove_name };
|
|
|
|
class file { getattr unlink };
|
2005-05-03 20:23:33 +00:00
|
|
|
')
|
2005-05-04 17:01:46 +00:00
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_domtrans_pam_console(domain)
|
2005-05-04 17:01:46 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_domtrans_pam_console',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
domain_auto_trans($1,pam_console_exec_t,pam_console_t)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
allow $1 pam_console_t:fd use;
|
|
|
|
allow pam_console_t $1:fd use;
|
|
|
|
allow pam_console_t $1:fifo_file rw_file_perms;
|
|
|
|
allow pam_console_t $1:process sigchld;
|
2005-05-04 17:01:46 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_domtrans_pam_console_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type pam_console_t, pam_console_exec_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class file rx_file_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
class process { transition noatsecure siginh rlimitinh sigchld };
|
|
|
|
class fd use;
|
|
|
|
class fifo_file rw_file_perms;
|
2005-05-04 17:01:46 +00:00
|
|
|
')
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_list_pam_console_data">
|
2005-06-09 14:50:48 +00:00
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## ...
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-05-30 21:17:20 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_list_pam_console_data(domain)
|
2005-05-30 21:17:20 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_list_pam_console_data',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
files_search_var($1)
|
|
|
|
files_search_pids($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1 pam_var_console_t:dir r_dir_perms;
|
2005-05-30 21:17:20 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_list_pam_console_data_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type pam_var_console_t;
|
|
|
|
|
|
|
|
class dir r_dir_perms;
|
2005-05-30 21:17:20 +00:00
|
|
|
')
|
|
|
|
|
2005-05-04 17:01:46 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_read_pam_console_data(domain)
|
2005-05-04 17:01:46 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_read_pam_console_data',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
files_search_var($1)
|
|
|
|
files_search_pids($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1 pam_var_console_t:dir r_dir_perms;
|
|
|
|
allow $1 pam_var_console_t:file r_file_perms;
|
2005-05-04 17:01:46 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_read_pam_console_data_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type pam_var_console_t;
|
|
|
|
|
|
|
|
class dir r_dir_perms;
|
|
|
|
class file r_file_perms;
|
2005-05-04 17:01:46 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_manage_pam_console_data(domain)
|
2005-05-04 17:01:46 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_manage_pam_console_data',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
files_search_var($1)
|
|
|
|
files_search_pids($1)
|
2005-06-09 14:50:48 +00:00
|
|
|
allow $1 pam_var_console_t:dir rw_dir_perms;
|
2005-06-10 01:01:13 +00:00
|
|
|
allow $1 pam_var_console_t:file create_file_perms;
|
2005-06-09 14:50:48 +00:00
|
|
|
allow $1 pam_var_console_t:lnk_file create_lnk_perms;
|
2005-05-04 17:01:46 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_manage_pam_console_data_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type pam_var_console_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class dir rw_dir_perms;
|
|
|
|
class file create_file_perms;
|
|
|
|
class lnk_file create_lnk_perms;
|
2005-05-04 17:01:46 +00:00
|
|
|
')
|
2005-05-16 21:10:33 +00:00
|
|
|
|
2005-05-25 20:58:21 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_relabel_all_files_except_shadow">
|
2005-05-25 20:58:21 +00:00
|
|
|
## <description>
|
|
|
|
## Relabel all files on the filesystem, except
|
|
|
|
## the shadow passwords and listed exceptions.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the domain perfoming this action.
|
|
|
|
## </parameter>
|
|
|
|
## <parameter name="exception_types" optional="true">
|
|
|
|
## The types to be excluded. Each type or attribute
|
|
|
|
## must be negated by the caller.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_relabel_all_files_except_shadow',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
files_relabel_all_files($1,$2 -shadow_t)
|
2005-05-25 20:58:21 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_relabel_all_files_except_shadow_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type shadow_t;
|
2005-05-25 20:58:21 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_manage_all_files_except_shadow">
|
2005-05-25 20:58:21 +00:00
|
|
|
## <description>
|
|
|
|
## Manage all files on the filesystem, except
|
|
|
|
## the shadow passwords and listed exceptions.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the domain perfoming this action.
|
|
|
|
## </parameter>
|
|
|
|
## <parameter name="exception_types" optional="true">
|
|
|
|
## The types to be excluded. Each type or attribute
|
|
|
|
## must be negated by the caller.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_manage_all_files_except_shadow',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
files_manage_all_files($1,$2 -shadow_t)
|
2005-05-25 20:58:21 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_manage_all_files_except_shadow_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type shadow_t;
|
2005-05-25 20:58:21 +00:00
|
|
|
')
|
|
|
|
|
2005-05-24 15:55:57 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_domtrans_utempter">
|
2005-05-24 15:55:57 +00:00
|
|
|
## <description>
|
|
|
|
## Execute utempter programs in the utempter domain.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_domtrans_utempter',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
domain_auto_trans($1,utempter_exec_t,utempter_t)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
allow $1 utempter_t:fd use;
|
|
|
|
allow utempter_t $1:fd use;
|
|
|
|
allow utempter_t $1:fifo_file rw_file_perms;
|
|
|
|
allow utempter_t $1:process sigchld;
|
2005-05-24 15:55:57 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_domtrans_utempter_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type utempter_t, utempter_exec_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class file rx_file_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
class process { transition noatsecure siginh rlimitinh sigchld };
|
|
|
|
class fd use;
|
|
|
|
class fifo_file rw_file_perms;
|
2005-05-24 15:55:57 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_run_utempter">
|
2005-05-24 15:55:57 +00:00
|
|
|
## <description>
|
|
|
|
## Execute utempter programs in the utempter domain.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## <parameter name="role">
|
|
|
|
## The role to allow the utempter domain.
|
|
|
|
## </parameter>
|
|
|
|
## <parameter name="terminal">
|
|
|
|
## The type of the terminal allow the utempter domain to use.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_run_utempter',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
auth_domtrans_utempter($1)
|
2005-06-03 12:25:14 +00:00
|
|
|
role $2 types utempter_t;
|
2005-06-09 14:50:48 +00:00
|
|
|
allow utempter_t $3:chr_file rw_file_perms;
|
2005-05-24 15:55:57 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_run_utempter_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type utempter_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class chr_file rw_file_perms;
|
2005-05-24 15:55:57 +00:00
|
|
|
')
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_read_login_records">
|
2005-06-09 14:50:48 +00:00
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <securitydesc>
|
|
|
|
## ...
|
|
|
|
## </securitydesc>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-05-16 21:10:33 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_read_login_records(domain)
|
2005-05-16 21:10:33 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_read_login_records',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_search_logs($1)
|
2005-06-09 14:50:48 +00:00
|
|
|
allow $1 wtmp_t:file r_file_perms;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_read_login_records_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type wtmp_t;
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
class file r_file_perms;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
2005-06-09 14:50:48 +00:00
|
|
|
########################################
|
2005-06-13 17:35:46 +00:00
|
|
|
## <interface name="auth_dontaudit_write_login_records">
|
2005-06-09 14:50:48 +00:00
|
|
|
## <description>
|
|
|
|
##
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
##
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
2005-05-16 21:10:33 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_dontaudit_write_login_records(domain)
|
2005-05-16 21:10:33 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_dontaudit_write_login_records',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
dontaudit $1 wtmp_t:file write;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_read_login_records_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type wtmp_t;
|
|
|
|
|
|
|
|
class file write;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
# auth_rw_login_records(domain)
|
2005-05-16 21:10:33 +00:00
|
|
|
#
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_rw_login_records',`
|
2005-06-13 20:47:04 +00:00
|
|
|
gen_require(`$0'_depend)
|
2005-06-03 12:25:14 +00:00
|
|
|
|
|
|
|
allow $1 wtmp_t:file rw_file_perms;
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_search_logs($1)
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
define(`auth_rw_login_records_depend',`
|
2005-05-16 21:10:33 +00:00
|
|
|
type wtmp_t;
|
2005-06-03 12:25:14 +00:00
|
|
|
class file rw_file_perms;
|
2005-05-16 21:10:33 +00:00
|
|
|
')
|
2005-05-24 15:55:57 +00:00
|
|
|
|
|
|
|
## </module>
|