## Record audio or data Compact Discs from a master.
########################################
##
## Role access for cdrecord.
##
##
##
## Role allowed access.
##
##
##
##
## User domain for the role.
##
##
#
interface(`cdrecord_role',`
gen_require(`
attribute_role cdrecord_roles;
type cdrecord_t, cdrecord_exec_t;
')
roleattribute $1 cdrecord_roles;
domtrans_pattern($2, cdrecord_exec_t, cdrecord_t)
allow cdrecord_t $2:unix_stream_socket rw_socket_perms;
allow $2 cdrecord_t:process { ptrace signal_perms };
ps_process_pattern($2, cdrecord_t)
')
########################################
##
## Execute cdrecord in the caller domain.
##
##
##
## Domain allowed access.
##
##
#
interface(`cdrecord_exec',`
gen_require(`
type cdrecord_exec_t;
')
corecmd_search_bin($1)
can_exec($1, cdrecord_exec_t)
')