diff options
Diffstat (limited to 'policy/modules/services/canna.if')
-rw-r--r-- | policy/modules/services/canna.if | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/policy/modules/services/canna.if b/policy/modules/services/canna.if new file mode 100644 index 00000000..c3f5b1d7 --- /dev/null +++ b/policy/modules/services/canna.if @@ -0,0 +1,22 @@ +## <summary>Canna - kana-kanji conversion server</summary> + +######################################## +## <summary> +## Connect to Canna using a unix domain stream socket. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +# +interface(`canna_stream_connect',` + gen_require(` + type canna_t, canna_var_run_t; + ') + + files_search_pids($1) + allow $1 canna_var_run_t:dir search; + allow $1 canna_var_run_t:sock_file write; + allow $1 canna_t:unix_stream_socket connectto; +') |