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

33 lines
678 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
')