selinux-refpolicy/policy/modules/apps/irc.if
2008-11-05 16:10:46 +00:00

32 lines
593 B
Plaintext

## <summary>IRC client policy</summary>
########################################
## <summary>
## Role access for IRC
## </summary>
## <param name="role">
## <summary>
## Role allowed access
## </summary>
## </param>
## <param name="domain">
## <summary>
## User domain for the role
## </summary>
## </param>
#
interface(`irc_role',`
gen_require(`
type irc_t, irc_exec_t;
')
role $1 types irc_t;
# Transition from the user domain to the derived domain.
domtrans_pattern($2, irc_exec_t, irc_t)
# allow ps to show irc
ps_process_pattern($2, irc_t)
allow $2 irc_t:process signal;
')