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

33 lines
678 B
Plaintext

## <summary>Games</summary>
############################################################
## <summary>
## Role access for games
## </summary>
## <param name="role">
## <summary>
## Role allowed access
## </summary>
## </param>
## <param name="domain">
## <summary>
## User domain for the role
## </summary>
## </param>
#
interface(`games_role',`
gen_require(`
type games_t, games_exec_t;
')
role $1 types games_t;
domtrans_pattern($2, games_exec_t, games_t)
allow $2 games_t:unix_stream_socket connectto;
allow games_t $2:unix_stream_socket connectto;
# Allow the user domain to signal/ps.
ps_process_pattern($2, games_t)
allow $2 games_t:process signal_perms;
')