selinux-refpolicy/policy/modules/apps/games.if
2009-03-11 13:32:23 +00:00

52 lines
1020 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;
')
########################################
## <summary>
## Allow the specified domain to read/write
## games data.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`games_rw_data',`
gen_require(`
type games_data_t;
')
rw_files_pattern($1, games_data_t, games_data_t)
')