selinux-refpolicy/policy/modules/apps/irc.if

32 lines
593 B
Plaintext
Raw Normal View History

2006-01-06 19:46:44 +00:00
## <summary>IRC client policy</summary>
2008-11-05 16:10:46 +00:00
########################################
2006-01-06 19:46:44 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## Role access for IRC
2006-01-06 19:46:44 +00:00
## </summary>
2008-11-05 16:10:46 +00:00
## <param name="role">
## <summary>
2008-11-05 16:10:46 +00:00
## Role allowed access
## </summary>
2006-01-06 19:46:44 +00:00
## </param>
2008-11-05 16:10:46 +00:00
## <param name="domain">
## <summary>
2008-11-05 16:10:46 +00:00
## User domain for the role
## </summary>
2006-01-06 19:46:44 +00:00
## </param>
#
2008-11-05 16:10:46 +00:00
interface(`irc_role',`
2006-01-06 19:46:44 +00:00
gen_require(`
2008-11-05 16:10:46 +00:00
type irc_t, irc_exec_t;
2006-01-06 19:46:44 +00:00
')
2008-11-05 16:10:46 +00:00
role $1 types irc_t;
2006-01-06 19:46:44 +00:00
# Transition from the user domain to the derived domain.
2008-11-05 16:10:46 +00:00
domtrans_pattern($2, irc_exec_t, irc_t)
2006-01-06 19:46:44 +00:00
# allow ps to show irc
2008-11-05 16:10:46 +00:00
ps_process_pattern($2, irc_t)
allow $2 irc_t:process signal;
2006-01-06 19:46:44 +00:00
')