selinux-refpolicy/policy/modules/services/obfs4proxy.if
Jonathan Davies a329633889 obfs4proxy: Added policy.
Signed-off-by: Jonathan Davies <jpds@protonmail.com>
2021-12-02 23:59:58 +00:00

39 lines
861 B
Plaintext

## <summary>obfs4proxy.</summary>
########################################
## <summary>
## Execute a domain transition to run obfs4proxy.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`obfs4proxy_domtrans',`
gen_require(`
type obfs4proxy_t, obfs4proxy_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, obfs4proxy_exec_t, obfs4proxy_t)
')
######################################
## <summary>
## Send terminated signals to obfs4proxy.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`obfs4proxy_signal',`
gen_require(`
type obfs4proxy_t;
')
allow $1 obfs4proxy_t:process signal;
')