selinux-policy/policy/modules/apps/games.if

52 lines
1020 B
Plaintext
Raw Normal View History

2006-03-21 18:07:53 +00:00
## <summary>Games</summary>
2008-11-05 16:10:46 +00:00
############################################################
2006-03-21 18:07:53 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## Role access for games
2006-03-21 18:07:53 +00:00
## </summary>
2008-11-05 16:10:46 +00:00
## <param name="role">
2006-03-21 18:07:53 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## Role allowed access
2006-03-21 18:07:53 +00:00
## </summary>
## </param>
2008-11-05 16:10:46 +00:00
## <param name="domain">
2006-03-21 18:07:53 +00:00
## <summary>
2008-11-05 16:10:46 +00:00
## User domain for the role
2006-03-21 18:07:53 +00:00
## </summary>
## </param>
#
2008-11-05 16:10:46 +00:00
interface(`games_role',`
gen_require(`
2008-11-05 16:10:46 +00:00
type games_t, games_exec_t;
2006-03-21 18:07:53 +00:00
')
2008-11-05 16:10:46 +00:00
role $1 types games_t;
2006-03-21 18:07:53 +00:00
2008-11-05 16:10:46 +00:00
domtrans_pattern($2, games_exec_t, games_t)
allow $2 games_t:unix_stream_socket connectto;
allow games_t $2:unix_stream_socket connectto;
2006-03-21 18:07:53 +00:00
2008-11-05 16:10:46 +00:00
# Allow the user domain to signal/ps.
ps_process_pattern($2, games_t)
allow $2 games_t:process signal_perms;
2006-03-21 18:07:53 +00:00
')
2009-03-11 13:32:23 +00:00
########################################
## <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)
')