selinux-policy/policy/modules/admin/dmesg.if

41 lines
775 B
Plaintext
Raw Normal View History

2005-05-26 15:50:53 +00:00
## <summary>Policy for dmesg.</summary>
########################################
2005-07-15 20:45:26 +00:00
## <summary>
2005-06-23 21:30:57 +00:00
## Execute dmesg in the dmesg domain.
2005-07-15 20:45:26 +00:00
## </summary>
2005-06-23 21:30:57 +00:00
## <param name="domain">
## <summary>
2005-06-23 21:30:57 +00:00
## The type of the process performing this action.
## </summary>
2005-06-23 21:30:57 +00:00
## </param>
2005-05-26 15:50:53 +00:00
#
interface(`dmesg_domtrans',`
gen_require(`
type dmesg_t, dmesg_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, dmesg_exec_t, dmesg_t)
2005-05-26 15:50:53 +00:00
')
########################################
2005-07-15 20:45:26 +00:00
## <summary>
2005-06-23 21:30:57 +00:00
## Execute dmesg in the caller domain.
2005-07-15 20:45:26 +00:00
## </summary>
2005-06-23 21:30:57 +00:00
## <param name="domain">
## <summary>
2005-06-23 21:30:57 +00:00
## The type of the process performing this action.
## </summary>
2005-06-23 21:30:57 +00:00
## </param>
2006-09-06 22:07:25 +00:00
## <rolecap/>
2005-05-26 15:50:53 +00:00
#
interface(`dmesg_exec',`
gen_require(`
type dmesg_exec_t;
')
corecmd_search_bin($1)
can_exec($1, dmesg_exec_t)
2005-05-26 15:50:53 +00:00
')