Chris PeBenito b77d01
## <summary> tvtime - a high quality television application </summary>
Chris PeBenito b77d01
Chris PeBenito 296273
########################################
Chris PeBenito b77d01
## <summary>
Chris PeBenito 296273
##	Role access for tvtime
Chris PeBenito b77d01
## </summary>
Chris PeBenito 296273
## <param name="role">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 296273
##	Role allowed access
Chris PeBenito 885b83
##	</summary>
Chris PeBenito b77d01
## </param>
Chris PeBenito 296273
## <param name="domain">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 296273
##	User domain for the role
Chris PeBenito 885b83
##	</summary>
Chris PeBenito b77d01
## </param>
Chris PeBenito b77d01
#
Chris PeBenito 296273
interface(`tvtime_role',`
Chris PeBenito 6b19be
	gen_require(`
Chris PeBenito 296273
		type tvtime_t, tvtime_exec_t;
Chris PeBenito 296273
		type tvtime_home_t, tvtime_tmpfs_t;
Chris PeBenito 6b19be
	')
Chris PeBenito b77d01
Chris PeBenito 296273
	role $1 types tvtime_t;
Chris PeBenito b77d01
Chris PeBenito b77d01
	# Type transition
Chris PeBenito 296273
	domtrans_pattern($2, tvtime_exec_t, tvtime_t)
Chris PeBenito b77d01
Chris PeBenito b77d01
	# X access, Home files
Chris PeBenito 296273
	manage_dirs_pattern($2, tvtime_home_t, tvtime_home_t)
Chris PeBenito 296273
	manage_files_pattern($2, tvtime_home_t, tvtime_home_t)
Chris PeBenito 296273
	manage_lnk_files_pattern($2, tvtime_home_t, tvtime_home_t)
Chris PeBenito 296273
	relabel_dirs_pattern($2, tvtime_home_t, tvtime_home_t)
Chris PeBenito 296273
	relabel_files_pattern($2, tvtime_home_t, tvtime_home_t)
Chris PeBenito 296273
	relabel_lnk_files_pattern($2, tvtime_home_t, tvtime_home_t)
Chris PeBenito b77d01
Chris PeBenito b77d01
	# Allow the user domain to signal/ps.
Chris PeBenito 296273
	ps_process_pattern($2, tvtime_t)
Chris PeBenito 296273
	allow $2 tvtime_t:process signal_perms;
Chris PeBenito b77d01
')