Oreon-Lime-R2/selinux-policy/selinux-policy-d9f4a2b/selinux-policy-d9f4a2bbeb91fd95d0c35a90936efb9ea99d2455/policy/modules/contrib/openca.if

77 lines
1.4 KiB
Text
Raw Normal View History

## <summary>Open Certificate Authority.</summary>
########################################
## <summary>
## Execute the openca with
## a domain transition.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`openca_domtrans',`
gen_require(`
type openca_ca_t, openca_ca_exec_t, openca_usr_share_t;
')
files_search_usr($1)
allow $1 openca_usr_share_t:dir search_dir_perms;
domtrans_pattern($1, openca_ca_exec_t, openca_ca_t)
')
########################################
## <summary>
## Send generic signals to openca.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`openca_signal',`
gen_require(`
type openca_ca_t;
')
allow $1 openca_ca_t:process signal;
')
########################################
## <summary>
## Send stop signals to openca.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`openca_sigstop',`
gen_require(`
type openca_ca_t;
')
allow $1 openca_ca_t:process sigstop;
')
########################################
## <summary>
## Send kill signals to openca.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`openca_kill',`
gen_require(`
type openca_ca_t;
')
allow $1 openca_ca_t:process sigkill;
')