selinux-refpolicy/policy/modules/apps/sigrok.if
2019-01-03 20:52:26 -05:00

27 lines
534 B
Plaintext

## <summary>sigrok signal analysis software suite.</summary>
########################################
## <summary>
## Execute sigrok in its domain.
## </summary>
## <param name="role">
## <summary>
## Role allowed access.
## </summary>
## </param>
## <param name="domain">
## <summary>
## User domain for the role.
## </summary>
## </param>
#
interface(`sigrok_run',`
gen_require(`
type sigrok_t, sigrok_exec_t;
attribute_role sigrok_roles;
')
roleattribute $1 sigrok_roles;
domtrans_pattern($2, sigrok_exec_t, sigrok_t)
')