Chris PeBenito 17de1b
## <summary>Common policy for authentication and user login.</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Common template to create a domain for authentication.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <desc>
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	This template creates a derived domain which is allowed
Chris PeBenito 17de1b
##	to authenticate users by using PAM unix_chkpwd support.
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
## </desc>
Chris PeBenito 17de1b
## <param name="userdomain_prefix">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The prefix of the user domain (e.g., user
Chris PeBenito 17de1b
##	is the prefix for user_t).
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
template(`authlogin_common_auth_domain_template',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		attribute can_read_shadow_passwords;
Chris PeBenito 17de1b
		type chkpwd_exec_t, shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	type $1_chkpwd_t, can_read_shadow_passwords;
Chris PeBenito 17de1b
	domain_type($1_chkpwd_t)
Chris PeBenito 17de1b
	domain_entry_file($1_chkpwd_t,chkpwd_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1_chkpwd_t self:capability { audit_write audit_control setuid };
Chris PeBenito 17de1b
	allow $1_chkpwd_t self:process getattr;
Chris PeBenito da9bbc
	allow $1_chkpwd_t self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay };
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_list_etc($1_chkpwd_t)
Chris PeBenito 17de1b
	allow $1_chkpwd_t shadow_t:file { getattr read };
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	# is_selinux_enabled
Chris PeBenito 17de1b
	kernel_read_system_state($1_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dev_read_rand($1_chkpwd_t)
Chris PeBenito 17de1b
	dev_read_urand($1_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	fs_dontaudit_getattr_xattr_fs($1_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	libs_use_ld_so($1_chkpwd_t)
Chris PeBenito 17de1b
	libs_use_shared_libs($1_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_read_etc_files($1_chkpwd_t)
Chris PeBenito 17de1b
	# for nscd
Chris PeBenito 17de1b
	files_dontaudit_search_var($1_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	logging_send_syslog_msg($1_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	miscfiles_read_certs($1_chkpwd_t)
Chris PeBenito 17de1b
	miscfiles_read_localization($1_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	seutil_read_config($1_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	sysnet_dns_name_resolve($1_chkpwd_t)
Chris PeBenito 17de1b
	sysnet_use_ldap($1_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	optional_policy(`
Chris PeBenito 17de1b
		kerberos_use($1_chkpwd_t)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	optional_policy(`
Chris PeBenito 17de1b
		nis_use_ypbind($1_chkpwd_t)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	optional_policy(`
Chris PeBenito 17de1b
		nscd_socket_use($1_chkpwd_t)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	optional_policy(`
Chris PeBenito 17de1b
		samba_stream_connect_winbind($1_chkpwd_t)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	The per user domain template for the authlogin module.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <desc>
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	This template creates a derived domain which is allowed
Chris PeBenito 17de1b
##	to authenticate users by using PAM unix_chkpwd support.
Chris PeBenito 17de1b
##	This domain will be used by any programs running in the
Chris PeBenito 17de1b
##	user domain which use PAM to authenticate.
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	This template is invoked automatically for each user, and
Chris PeBenito 17de1b
##	generally does not need to be invoked directly
Chris PeBenito 17de1b
##	by policy writers.
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
## </desc>
Chris PeBenito 17de1b
## <param name="userdomain_prefix">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The prefix of the user domain (e.g., user
Chris PeBenito 17de1b
##	is the prefix for user_t).
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="user_domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the user domain.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="user_role">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The role associated with the user domain.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
template(`authlogin_per_userdomain_template',`
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type system_chkpwd_t, shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	authlogin_common_auth_domain_template($1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	role $3 types $1_chkpwd_t;
Chris PeBenito 17de1b
	role $3 types system_chkpwd_t;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $2 self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay };
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dontaudit $2 shadow_t:file { getattr read };
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	# Transition from the user domain to this domain.
Chris PeBenito 17de1b
	domain_auto_trans($2,chkpwd_exec_t,$1_chkpwd_t)
Chris PeBenito 17de1b
	allow $1_chkpwd_t $2:fd use;
Chris PeBenito 17de1b
	allow $2 $1_chkpwd_t:fd use;
Chris PeBenito 17de1b
	allow $1_chkpwd_t $2:fifo_file rw_file_perms;
Chris PeBenito 17de1b
	allow $1_chkpwd_t $2:process sigchld;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	domain_use_interactive_fds($1_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	seutil_use_newrole_fds($1_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	# Write to the user domain tty.
Chris PeBenito 17de1b
	userdom_use_user_terminals($1,$1_chkpwd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Run unix_chkpwd to check a password
Chris PeBenito 17de1b
##	for a user domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <desc>
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	Run unix_chkpwd to check a password
Chris PeBenito 17de1b
##	for a user domain.
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	This is a templated interface, and should only
Chris PeBenito 17de1b
##	be called from a per-userdomain template.
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
## </desc>
Chris PeBenito 17de1b
## <param name="userdomain_prefix">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The prefix of the user domain (e.g., user
Chris PeBenito 17de1b
##	is the prefix for user_t).
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
template(`auth_domtrans_user_chk_passwd',`
Chris PeBenito 17de1b
	ifdef(`targeted_policy',`
Chris PeBenito 17de1b
		gen_require(`
Chris PeBenito 17de1b
			type system_chkpwd_t, chkpwd_exec_t;
Chris PeBenito 17de1b
		')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
		domain_auto_trans($2,chkpwd_exec_t,system_chkpwd_t)
Chris PeBenito 17de1b
		allow $2 system_chkpwd_t:fd use;
Chris PeBenito 17de1b
		allow system_chkpwd_t $2:fd use;
Chris PeBenito 17de1b
		allow system_chkpwd_t $2:fifo_file rw_file_perms;
Chris PeBenito 17de1b
		allow system_chkpwd_t $2:process sigchld;
Chris PeBenito 17de1b
	',`
Chris PeBenito 17de1b
		gen_require(`
Chris PeBenito 17de1b
			type $1_chkpwd_t, chkpwd_exec_t;
Chris PeBenito 17de1b
		')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
		corecmd_search_bin($2)
Chris PeBenito 17de1b
		domain_auto_trans($2,chkpwd_exec_t,$1_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
		allow $2 $1_chkpwd_t:fd use;
Chris PeBenito 17de1b
		allow $1_chkpwd_t $2:fd use;
Chris PeBenito 17de1b
		allow $1_chkpwd_t $2:fifo_file rw_file_perms;
Chris PeBenito 17de1b
		allow $1_chkpwd_t $2:process sigchld;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Use the login program as an entry point program.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of process using the login program as entry point.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_login_entry_type',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type login_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	domain_entry_file($1,login_exec_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute a login_program in the target domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="target_domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the login_program process.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_domtrans_login_program',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type login_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	corecmd_search_bin($1)
Chris PeBenito 17de1b
	domain_auto_trans($1,login_exec_t,$2)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 $2:fd use;
Chris PeBenito 17de1b
	allow $2 $1:fd use;
Chris PeBenito 17de1b
	allow $2 $1:fifo_file rw_file_perms;
Chris PeBenito 17de1b
	allow $2 $1:process sigchld;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Run unix_chkpwd to check a password.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_domtrans_chk_passwd',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type system_chkpwd_t, chkpwd_exec_t, shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	corecmd_search_sbin($1)
Chris PeBenito 17de1b
	domain_auto_trans($1,chkpwd_exec_t,system_chkpwd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 self:capability { audit_write audit_control };
Chris PeBenito 17de1b
	allow $1 self:netlink_audit_socket { create_netlink_socket_perms nlmsg_relay };
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 system_chkpwd_t:fd use;
Chris PeBenito 17de1b
	allow system_chkpwd_t $1:fd use;
Chris PeBenito 17de1b
	allow system_chkpwd_t $1:fifo_file rw_file_perms;
Chris PeBenito 17de1b
	allow system_chkpwd_t $1:process sigchld;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dontaudit $1 shadow_t:file { getattr read };
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dev_read_rand($1)
Chris PeBenito 17de1b
	dev_read_urand($1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	miscfiles_read_certs($1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	sysnet_dns_name_resolve($1)
Chris PeBenito 17de1b
	sysnet_use_ldap($1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	optional_policy(`
Chris PeBenito 17de1b
		kerberos_use($1)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	optional_policy(`
Chris PeBenito 17de1b
		nis_use_ypbind($1)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	optional_policy(`
Chris PeBenito 17de1b
		samba_stream_connect_winbind($1)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Get the attributes of the shadow passwords file.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_getattr_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_etc($1)
Chris PeBenito 17de1b
	allow $1 shadow_t:file getattr;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Do not audit attempts to get the attributes
Chris PeBenito 17de1b
##	of the shadow passwords file.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain to not audit.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_dontaudit_getattr_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dontaudit $1 shadow_t:file getattr;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read the shadow passwords file (/etc/shadow)
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# cjp: these next three interfaces are split 
Chris PeBenito 17de1b
# since typeattribute does not work in conditionals
Chris PeBenito 17de1b
# yet, otherwise they should be one interface.
Chris PeBenito 17de1b
# 
Chris PeBenito 17de1b
interface(`auth_read_shadow',`
Chris PeBenito 17de1b
	auth_can_read_shadow_passwords($1)
Chris PeBenito 17de1b
	auth_tunable_read_shadow($1)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Pass shadow assertion for reading.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <desc>
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	Pass shadow assertion for reading.
Chris PeBenito 17de1b
##	This should only be used with
Chris PeBenito 17de1b
##	auth_tunable_read_shadow(), and
Chris PeBenito 17de1b
##	only exists because typeattribute
Chris PeBenito 17de1b
##	does not work in conditionals.
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
## </desc>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_can_read_shadow_passwords',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		attribute can_read_shadow_passwords;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	typeattribute $1 can_read_shadow_passwords;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read the shadow password file.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <desc>
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	Read the shadow password file.  This
Chris PeBenito 17de1b
##	should only be used in a conditional;
Chris PeBenito 17de1b
##	it does not pass the reading shadow
Chris PeBenito 17de1b
##	assertion.
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
## </desc>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_tunable_read_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_list_etc($1)
Chris PeBenito 17de1b
	allow $1 shadow_t:file r_file_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Do not audit attempts to read the shadow
Chris PeBenito 17de1b
##	password file (/etc/shadow).
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the domain to not audit.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_dontaudit_read_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dontaudit $1 shadow_t:file { getattr read };
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read and write the shadow password file (/etc/shadow).
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_rw_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		attribute can_read_shadow_passwords, can_write_shadow_passwords;
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_list_etc($1)
Chris PeBenito 17de1b
	allow $1 shadow_t:file rw_file_perms;
Chris PeBenito 17de1b
	typeattribute $1 can_read_shadow_passwords, can_write_shadow_passwords;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Create, read, write, and delete the shadow
Chris PeBenito 17de1b
##	password file.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_manage_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		attribute can_read_shadow_passwords, can_write_shadow_passwords;
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 shadow_t:file create_file_perms;
Chris PeBenito 17de1b
	typeattribute $1 can_read_shadow_passwords, can_write_shadow_passwords;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Automatic transition from etc to shadow.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_etc_filetrans_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_etc_filetrans($1,shadow_t,file)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Relabel to the shadow
Chris PeBenito 17de1b
##	password file type.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_relabelto_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		attribute can_relabelto_shadow_passwords;
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_etc($1)
Chris PeBenito 17de1b
	allow $1 shadow_t:file relabelto;
Chris PeBenito 17de1b
	typeattribute $1 can_relabelto_shadow_passwords;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Relabel from and to the shadow
Chris PeBenito 17de1b
##	password file type.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_relabel_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		attribute can_relabelto_shadow_passwords;
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_etc($1)
Chris PeBenito 17de1b
	allow $1 shadow_t:file { relabelfrom relabelto };
Chris PeBenito 17de1b
	typeattribute $1 can_relabelto_shadow_passwords;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Append to the login failure log.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_append_faillog',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type faillog_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	logging_search_logs($1)
Chris PeBenito 17de1b
	allow $1 faillog_t:file { getattr append };
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read and write the login failure log.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_rw_faillog',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type faillog_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	logging_search_logs($1)
Chris PeBenito 17de1b
	allow $1 faillog_t:file rw_file_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read the last logins log.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_read_lastlog',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type lastlog_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	logging_search_logs($1)
Chris PeBenito 17de1b
	allow $1 lastlog_t:file { getattr read };
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Append only to the last logins log.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_append_lastlog',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type lastlog_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	logging_search_logs($1)
Chris PeBenito 17de1b
	allow $1 lastlog_t:file { getattr lock append };
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read and write to the last logins log.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_rw_lastlog',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type lastlog_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	logging_search_logs($1)
Chris PeBenito 17de1b
	allow $1 lastlog_t:file { getattr read write setattr };
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute pam programs in the pam domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_domtrans_pam',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_t, pam_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	domain_auto_trans($1,pam_exec_t,pam_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 pam_t:fd use;
Chris PeBenito 17de1b
	allow pam_t $1:fd use;
Chris PeBenito 17de1b
	allow pam_t $1:fifo_file rw_file_perms;
Chris PeBenito 17de1b
	allow pam_t $1:process sigchld;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute pam programs in the PAM domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="role">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The role to allow the PAM domain.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="terminal">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the terminal allow the PAM domain to use.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_run_pam',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	auth_domtrans_pam($1)
Chris PeBenito 17de1b
	role $2 types pam_t;
Chris PeBenito 17de1b
	allow pam_t $3:chr_file rw_file_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute the pam program.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_exec_pam',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	can_exec($1,pam_exec_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Manage var auth files. Used by various other applications
Chris PeBenito 17de1b
##	and pam applets etc.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_manage_var_auth',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type var_auth_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_var($1)
Chris PeBenito 17de1b
	allow $1 var_auth_t:dir create_dir_perms;
Chris PeBenito 17de1b
	allow $1 var_auth_t:file rw_file_perms;
Chris PeBenito 17de1b
	allow $1 var_auth_t:lnk_file rw_file_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read PAM PID files.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_read_pam_pid',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_var_run_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_var($1)
Chris PeBenito 17de1b
	files_search_pids($1)
Chris PeBenito 17de1b
	allow $1 pam_var_run_t:dir r_dir_perms;
Chris PeBenito 17de1b
	allow $1 pam_var_run_t:file r_file_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Do not audit attemps to read PAM PID files.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain to not audit.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_dontaudit_read_pam_pid',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_var_run_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dontaudit $1 pam_var_run_t:file { getattr read };
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Delete pam PID files.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_delete_pam_pid',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_var_run_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_var($1)
Chris PeBenito 17de1b
	files_search_pids($1)
Chris PeBenito 17de1b
	allow $1 pam_var_run_t:dir { getattr search read write remove_name };
Chris PeBenito 17de1b
	allow $1 pam_var_run_t:file { getattr unlink };
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Manage pam PID files.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_manage_pam_pid',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_var_run_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_pids($1)
Chris PeBenito 17de1b
	allow $1 pam_var_run_t:dir create_dir_perms;
Chris PeBenito 17de1b
	allow $1 pam_var_run_t:file create_file_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute pam_console with a domain transition.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_domtrans_pam_console',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_console_t, pam_console_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	domain_auto_trans($1,pam_console_exec_t,pam_console_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 pam_console_t:fd use;
Chris PeBenito 17de1b
	allow pam_console_t $1:fd use;
Chris PeBenito 17de1b
	allow pam_console_t $1:fifo_file rw_file_perms;
Chris PeBenito 17de1b
	allow pam_console_t $1:process sigchld;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Search the contents of the
Chris PeBenito 17de1b
##	pam_console data directory.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_search_pam_console_data',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_var_console_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_var($1)
Chris PeBenito 17de1b
	files_search_pids($1)
Chris PeBenito 17de1b
	allow $1 pam_var_console_t:dir search_dir_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	List the contents of the pam_console
Chris PeBenito 17de1b
##	data directory.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_list_pam_console_data',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_var_console_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_var($1)
Chris PeBenito 17de1b
	files_search_pids($1)
Chris PeBenito 17de1b
	allow $1 pam_var_console_t:dir r_dir_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read pam_console data files.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_read_pam_console_data',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_var_console_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_var($1)
Chris PeBenito 17de1b
	files_search_pids($1)
Chris PeBenito 17de1b
	allow $1 pam_var_console_t:dir r_dir_perms;
Chris PeBenito 17de1b
	allow $1 pam_var_console_t:file r_file_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Create, read, write, and delete
Chris PeBenito 17de1b
##	pam_console data files.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_manage_pam_console_data',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_var_console_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_var($1)
Chris PeBenito 17de1b
	files_search_pids($1)
Chris PeBenito 17de1b
	allow $1 pam_var_console_t:dir rw_dir_perms;
Chris PeBenito 17de1b
	allow $1 pam_var_console_t:file create_file_perms;
Chris PeBenito 17de1b
	allow $1 pam_var_console_t:lnk_file create_lnk_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Delete pam_console data.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_delete_pam_console_data',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type pam_var_console_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_var($1)
Chris PeBenito 17de1b
	files_search_pids($1)
Chris PeBenito 17de1b
	allow $1 pam_var_console_t:dir rw_dir_perms;
Chris PeBenito 17de1b
	allow $1 pam_var_console_t:file unlink;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read all directories on the filesystem, except
Chris PeBenito 17de1b
##	the shadow passwords and listed exceptions.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the domain perfoming this action.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="exception_types" optional="true">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The types to be excluded.  Each type or attribute
Chris PeBenito 17de1b
##	must be negated by the caller.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_read_all_dirs_except_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_read_all_dirs_except($1,$2 -shadow_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read all files on the filesystem, except
Chris PeBenito 17de1b
##	the shadow passwords and listed exceptions.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the domain perfoming this action.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="exception_types" optional="true">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The types to be excluded.  Each type or attribute
Chris PeBenito 17de1b
##	must be negated by the caller.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_read_all_files_except_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_read_all_files_except($1,$2 -shadow_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read all symbolic links on the filesystem, except
Chris PeBenito 17de1b
##	the shadow passwords and listed exceptions.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the domain perfoming this action.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="exception_types" optional="true">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The types to be excluded.  Each type or attribute
Chris PeBenito 17de1b
##	must be negated by the caller.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_read_all_symlinks_except_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_read_all_symlinks_except($1,$2 -shadow_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Relabel all files on the filesystem, except
Chris PeBenito 17de1b
##	the shadow passwords and listed exceptions.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the domain perfoming this action.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="exception_types" optional="true">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The types to be excluded.  Each type or attribute
Chris PeBenito 17de1b
##	must be negated by the caller.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
interface(`auth_relabel_all_files_except_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_relabel_all_files($1,$2 -shadow_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Manage all files on the filesystem, except
Chris PeBenito 17de1b
##	the shadow passwords and listed exceptions.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the domain perfoming this action.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="exception_types" optional="true">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The types to be excluded.  Each type or attribute
Chris PeBenito 17de1b
##	must be negated by the caller.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
interface(`auth_manage_all_files_except_shadow',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type shadow_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_manage_all_files($1,$2 -shadow_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute utempter programs in the utempter domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_domtrans_utempter',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type utempter_t, utempter_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	domain_auto_trans($1,utempter_exec_t,utempter_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 utempter_t:fd use;
Chris PeBenito 17de1b
	allow utempter_t $1:fd use;
Chris PeBenito 17de1b
	allow utempter_t $1:fifo_file rw_file_perms;
Chris PeBenito 17de1b
	allow utempter_t $1:process sigchld;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute utempter programs in the utempter domain.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="role">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The role to allow the utempter domain.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
## <param name="terminal">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	The type of the terminal allow the utempter domain to use.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_run_utempter',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type utempter_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	auth_domtrans_utempter($1)
Chris PeBenito 17de1b
	role $2 types utempter_t;
Chris PeBenito 17de1b
	allow utempter_t $3:chr_file rw_file_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Do not audit attemps to execute utempter executable.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain to not audit.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_dontaudit_exec_utempter',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type utempter_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dontaudit $1 utempter_exec_t:file { execute execute_no_trans };
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Set the attributes of login record files.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_setattr_login_records',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type wtmp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 wtmp_t:file setattr;
Chris PeBenito 17de1b
	logging_search_logs($1)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read login records files (/var/log/wtmp).
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_read_login_records',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type wtmp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	logging_search_logs($1)
Chris PeBenito 17de1b
	allow $1 wtmp_t:file r_file_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Do not audit attempts to write to
Chris PeBenito 17de1b
##	login records files.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain to not audit.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_dontaudit_write_login_records',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type wtmp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	dontaudit $1 wtmp_t:file write;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Append to login records (wtmp).
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_append_login_records',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type wtmp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 wtmp_t:file { getattr append };
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#######################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Write to login records (wtmp).
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_write_login_records',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type wtmp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 wtmp_t:file { write lock };
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read and write login records.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_rw_login_records',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type wtmp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 wtmp_t:file rw_file_perms;
Chris PeBenito 17de1b
	logging_search_logs($1)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Create a login records in the log directory
Chris PeBenito 17de1b
##	using a type transition.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_log_filetrans_login_records',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type wtmp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	logging_log_filetrans($1,wtmp_t,file)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Create, read, write, and delete login
Chris PeBenito 17de1b
##	records files.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_manage_login_records',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type wtmp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	logging_rw_generic_log_dirs($1)
Chris PeBenito 17de1b
	allow $1 wtmp_t:file create_file_perms;
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Use nsswitch to look up uid-username mappings.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_use_nsswitch',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type var_auth_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 self:netlink_route_socket r_netlink_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 var_auth_t:dir r_dir_perms;
Chris PeBenito 17de1b
	allow $1 var_auth_t:file create_file_perms;
Chris PeBenito 17de1b
	files_list_var_lib($1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	miscfiles_read_certs($1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	sysnet_dns_name_resolve($1)
Chris PeBenito 17de1b
	sysnet_use_ldap($1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	optional_policy(`
Chris PeBenito 17de1b
		nis_use_ypbind($1)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	optional_policy(`
Chris PeBenito 17de1b
		samba_stream_connect_winbind($1)
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Unconfined access to the authlogin module.
Chris PeBenito 17de1b
## </summary>
Chris PeBenito 17de1b
## <desc>
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	Unconfined access to the authlogin module.
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
##	Currently, this only allows assertions for
Chris PeBenito 17de1b
##	the shadow passwords file (/etc/shadow) to
Chris PeBenito 17de1b
##	be passed.  No access is granted yet.
Chris PeBenito 17de1b
##	

Chris PeBenito 17de1b
## </desc>
Chris PeBenito 17de1b
## <param name="domain">
Chris PeBenito 17de1b
##	<summary>
Chris PeBenito 17de1b
##	Domain allowed access.
Chris PeBenito 17de1b
##	</summary>
Chris PeBenito 17de1b
## </param>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`auth_unconfined',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		attribute can_read_shadow_passwords;
Chris PeBenito 17de1b
		attribute can_write_shadow_passwords;
Chris PeBenito 17de1b
		attribute can_relabelto_shadow_passwords;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	typeattribute $1 can_read_shadow_passwords;
Chris PeBenito 17de1b
	typeattribute $1 can_write_shadow_passwords;
Chris PeBenito 17de1b
	typeattribute $1 can_relabelto_shadow_passwords;
Chris PeBenito 17de1b
')