Add interface to run cdrecord in caller domain
Signed-off-by: Dave Sugar <dsugar@tresys.com>
This commit is contained in:
parent
b3cbf00cba
commit
31ac26dd58
|
@ -30,3 +30,22 @@ interface(`cdrecord_role',`
|
|||
allow $2 cdrecord_t:process { ptrace signal_perms };
|
||||
ps_process_pattern($2, cdrecord_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Execute cdrecord in the caller domain.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`cdrecord_exec',`
|
||||
gen_require(`
|
||||
type cdrecord_exec_t;
|
||||
')
|
||||
|
||||
corecmd_search_bin($1)
|
||||
can_exec($1, cdrecord_exec_t)
|
||||
')
|
||||
|
|
Loading…
Reference in New Issue