Chris PeBenito 4ec694
## <summary>Policy for cdrecord</summary>
Chris PeBenito 4ec694
Chris PeBenito 296273
########################################
Chris PeBenito 4ec694
## <summary>
Chris PeBenito 296273
##	Role access for cdrecord
Chris PeBenito 4ec694
## </summary>
Chris PeBenito 296273
## <param name="role">
Chris PeBenito 885b83
##	<summary>
Chris PeBenito 296273
##	Role allowed access
Chris PeBenito 885b83
##	</summary>
Chris PeBenito 4ec694
## </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 4ec694
## </param>
Chris PeBenito 4ec694
#
Chris PeBenito 296273
interface(`cdrecord_role',`
Chris PeBenito 4ec694
	gen_require(`
Chris PeBenito 296273
		type cdrecord_t, cdrecord_exec_t;
Chris PeBenito 4ec694
	')
Chris PeBenito 4ec694
Chris PeBenito 296273
	role $1 types cdrecord_t;
Chris PeBenito 4ec694
Chris PeBenito 4ec694
	# Transition from the user domain to the derived domain.
Chris PeBenito 296273
	domtrans_pattern($2, cdrecord_exec_t, cdrecord_t)
Chris PeBenito 4ec694
Chris PeBenito 296273
	allow cdrecord_t $2:unix_stream_socket { getattr read write ioctl };
Chris PeBenito 4ec694
Chris PeBenito 296273
	# allow ps to show cdrecord and allow the user to kill it 
Chris PeBenito 296273
	ps_process_pattern($2, cdrecord_t)
Chris PeBenito 296273
	allow $2 cdrecord_t:process signal;
Chris PeBenito 4ec694
')