|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
c90440 |
policy_module(games, 2.0.2)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
########################################
|
|
Chris PeBenito |
fbc0a2 |
#
|
|
Chris PeBenito |
fbc0a2 |
# Declarations
|
|
Chris PeBenito |
fbc0a2 |
#
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
type games_t;
|
|
Chris PeBenito |
296273 |
type games_exec_t;
|
|
Chris PeBenito |
296273 |
typealias games_t alias { user_games_t staff_games_t sysadm_games_t };
|
|
Chris PeBenito |
296273 |
typealias games_t alias { auditadm_games_t secadm_games_t };
|
|
Chris PeBenito |
296273 |
application_domain(games_t, games_exec_t)
|
|
Chris PeBenito |
296273 |
ubac_constrained(games_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
fbc0a2 |
type games_data_t;
|
|
Chris PeBenito |
296273 |
typealias games_data_t alias { user_games_data_t staff_games_data_t sysadm_games_data_t };
|
|
Chris PeBenito |
296273 |
typealias games_data_t alias { auditadm_games_data_t secadm_games_data_t };
|
|
Chris PeBenito |
fbc0a2 |
files_type(games_data_t)
|
|
Chris PeBenito |
296273 |
ubac_constrained(games_data_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
type games_devpts_t;
|
|
Chris PeBenito |
296273 |
typealias games_devpts_t alias { user_games_devpts_t staff_games_devpts_t sysadm_games_devpts_t };
|
|
Chris PeBenito |
296273 |
typealias games_devpts_t alias { auditadm_games_devpts_t secadm_games_devpts_t };
|
|
Chris PeBenito |
296273 |
term_pty(games_devpts_t)
|
|
Chris PeBenito |
296273 |
ubac_constrained(games_devpts_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
# games_srv_t is for system operation of games, generic games daemons and
|
|
Chris PeBenito |
fbc0a2 |
# games recovery scripts
|
|
Chris PeBenito |
296273 |
type games_srv_t;
|
|
Chris PeBenito |
296273 |
init_system_domain(games_srv_t, games_exec_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
type games_srv_var_run_t;
|
|
Chris PeBenito |
296273 |
files_pid_file(games_srv_var_run_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
type games_tmp_t;
|
|
Chris PeBenito |
296273 |
typealias games_tmp_t alias { user_games_tmp_t staff_games_tmp_t sysadm_games_tmp_t };
|
|
Chris PeBenito |
296273 |
typealias games_tmp_t alias { auditadm_games_tmp_t secadm_games_tmp_t };
|
|
Chris PeBenito |
296273 |
files_tmp_file(games_tmp_t)
|
|
Chris PeBenito |
296273 |
ubac_constrained(games_tmp_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
type games_tmpfs_t;
|
|
Chris PeBenito |
296273 |
typealias games_tmpfs_t alias { user_games_tmpfs_t staff_games_tmpfs_t sysadm_games_tmpfs_t };
|
|
Chris PeBenito |
296273 |
typealias games_tmpfs_t alias { auditadm_games_tmpfs_t secadm_games_tmpfs_t };
|
|
Chris PeBenito |
296273 |
files_tmpfs_file(games_tmpfs_t)
|
|
Chris PeBenito |
296273 |
ubac_constrained(games_tmpfs_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
########################################
|
|
Chris PeBenito |
fbc0a2 |
#
|
|
Chris PeBenito |
296273 |
# Server local policy
|
|
Chris PeBenito |
fbc0a2 |
#
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
dontaudit games_srv_t self:capability sys_tty_config;
|
|
Chris PeBenito |
296273 |
allow games_srv_t self:process signal_perms;
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
manage_files_pattern(games_srv_t, games_data_t, games_data_t)
|
|
Chris PeBenito |
296273 |
manage_lnk_files_pattern(games_srv_t, games_data_t, games_data_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
manage_files_pattern(games_srv_t, games_srv_var_run_t, games_srv_var_run_t)
|
|
Chris PeBenito |
296273 |
files_pid_filetrans(games_srv_t, games_srv_var_run_t, file)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
can_exec(games_srv_t, games_exec_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
kernel_read_kernel_sysctls(games_srv_t)
|
|
Chris PeBenito |
296273 |
kernel_list_proc(games_srv_t)
|
|
Chris PeBenito |
296273 |
kernel_read_proc_symlinks(games_srv_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
dev_read_sysfs(games_srv_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
fs_getattr_all_fs(games_srv_t)
|
|
Chris PeBenito |
296273 |
fs_search_auto_mountpoints(games_srv_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
term_dontaudit_use_console(games_srv_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
domain_use_interactive_fds(games_srv_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
init_use_fds(games_srv_t)
|
|
Chris PeBenito |
296273 |
init_use_script_ptys(games_srv_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
logging_send_syslog_msg(games_srv_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
miscfiles_read_localization(games_srv_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_use_unpriv_user_fds(games_srv_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(games_srv_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
optional_policy(`
|
|
Chris PeBenito |
296273 |
seutil_sigchld_newrole(games_srv_t)
|
|
Chris PeBenito |
296273 |
')
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
optional_policy(`
|
|
Chris PeBenito |
296273 |
udev_read_db(games_srv_t)
|
|
Chris PeBenito |
296273 |
')
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
########################################
|
|
Chris PeBenito |
296273 |
#
|
|
Chris PeBenito |
296273 |
# Local policy
|
|
Chris PeBenito |
296273 |
#
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
allow games_t self:sem create_sem_perms;
|
|
Chris PeBenito |
296273 |
allow games_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
296273 |
allow games_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
manage_files_pattern(games_t, games_data_t, games_data_t)
|
|
Chris PeBenito |
296273 |
manage_lnk_files_pattern(games_t, games_data_t, games_data_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
allow games_t games_devpts_t:chr_file { rw_chr_file_perms setattr };
|
|
Chris PeBenito |
296273 |
term_create_pty(games_t, games_devpts_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
manage_dirs_pattern(games_t, games_tmp_t, games_tmp_t)
|
|
Chris PeBenito |
296273 |
manage_files_pattern(games_t, games_tmp_t, games_tmp_t)
|
|
Chris PeBenito |
296273 |
files_tmp_filetrans(games_t, games_tmp_t, { file dir })
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
manage_files_pattern(games_t, games_tmpfs_t, games_tmpfs_t)
|
|
Chris PeBenito |
296273 |
manage_lnk_files_pattern(games_t, games_tmpfs_t, games_tmpfs_t)
|
|
Chris PeBenito |
296273 |
manage_fifo_files_pattern(games_t, games_tmpfs_t, games_tmpfs_t)
|
|
Chris PeBenito |
296273 |
manage_sock_files_pattern(games_t, games_tmpfs_t, games_tmpfs_t)
|
|
Chris PeBenito |
296273 |
fs_tmpfs_filetrans(games_t, games_tmpfs_t, { file lnk_file sock_file fifo_file })
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
can_exec(games_t, games_exec_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
kernel_read_system_state(games_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
corecmd_exec_bin(games_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
corenet_all_recvfrom_unlabeled(games_t)
|
|
Chris PeBenito |
296273 |
corenet_all_recvfrom_netlabel(games_t)
|
|
Chris PeBenito |
296273 |
corenet_tcp_sendrecv_generic_if(games_t)
|
|
Chris PeBenito |
296273 |
corenet_udp_sendrecv_generic_if(games_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(games_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(games_t)
|
|
Chris PeBenito |
296273 |
corenet_tcp_sendrecv_all_ports(games_t)
|
|
Chris PeBenito |
296273 |
corenet_udp_sendrecv_all_ports(games_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_bind_generic_node(games_t)
|
|
Chris PeBenito |
296273 |
corenet_tcp_bind_generic_port(games_t)
|
|
Chris PeBenito |
296273 |
corenet_tcp_connect_generic_port(games_t)
|
|
Chris PeBenito |
296273 |
corenet_sendrecv_generic_client_packets(games_t)
|
|
Chris PeBenito |
296273 |
corenet_sendrecv_generic_server_packets(games_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
dev_read_sound(games_t)
|
|
Chris PeBenito |
296273 |
dev_write_sound(games_t)
|
|
Chris PeBenito |
296273 |
dev_read_input(games_t)
|
|
Chris PeBenito |
296273 |
dev_read_mouse(games_t)
|
|
Chris PeBenito |
296273 |
dev_read_urand(games_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
files_list_var(games_t)
|
|
Chris PeBenito |
296273 |
files_search_var_lib(games_t)
|
|
Chris PeBenito |
296273 |
files_dontaudit_search_var(games_t)
|
|
Chris PeBenito |
296273 |
files_read_etc_files(games_t)
|
|
Chris PeBenito |
296273 |
files_read_usr_files(games_t)
|
|
Chris PeBenito |
296273 |
files_read_var_files(games_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
init_dontaudit_rw_utmp(games_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
logging_dontaudit_search_logs(games_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
miscfiles_read_man_pages(games_t)
|
|
Chris PeBenito |
fbc0a2 |
miscfiles_read_localization(games_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
296273 |
sysnet_read_config(games_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
296273 |
userdom_manage_user_tmp_dirs(games_t)
|
|
Chris PeBenito |
296273 |
userdom_manage_user_tmp_files(games_t)
|
|
Chris PeBenito |
296273 |
userdom_manage_user_tmp_symlinks(games_t)
|
|
Chris PeBenito |
296273 |
userdom_manage_user_tmp_sockets(games_t)
|
|
Chris PeBenito |
296273 |
# Suppress .icons denial until properly implemented
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_read_user_home_content_files(games_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
296273 |
tunable_policy(`allow_execmem',`
|
|
Chris PeBenito |
296273 |
allow games_t self:process execmem;
|
|
Chris PeBenito |
296273 |
')
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
296273 |
nscd_socket_use(games_t)
|
|
Chris PeBenito |
fbc0a2 |
')
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
296273 |
xserver_user_x_domain_template(games, games_t, games_tmpfs_t)
|
|
Chris PeBenito |
296273 |
xserver_create_xdm_tmp_sockets(games_t)
|
|
Chris PeBenito |
296273 |
xserver_read_xdm_lib_files(games_t)
|
|
Chris PeBenito |
fbc0a2 |
')
|