## Xchat IRC client
########################################
##
## Role access for xchat
##
##
##
## Role allowed access
##
##
##
##
## User domain for the role
##
##
#
interface(`xchat_role',`
gen_require(`
type xchat_t, xchat_exec_t, xchat_userdata_t;
')
role $1 types xchat_t;
domain_auto_trans($2, xchat_exec_t, xchat_t)
allow xchat_t $2:fd use;
# Allow the user domain to signal/ps.
ps_process_pattern($2, xchat_t)
allow $2 xchat_t:process signal_perms;
manage_dirs_pattern($2 , xchat_userdata_t, xchat_userdata_t)
manage_files_pattern($2 , xchat_userdata_t, xchat_userdata_t)
')