|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
policy_module(games,1.0.0)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
########################################
|
|
Chris PeBenito |
fbc0a2 |
#
|
|
Chris PeBenito |
fbc0a2 |
# Declarations
|
|
Chris PeBenito |
fbc0a2 |
#
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
type games_data_t;
|
|
Chris PeBenito |
fbc0a2 |
files_type(games_data_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
# games_t is for system operation of games, generic games daemons and
|
|
Chris PeBenito |
fbc0a2 |
# games recovery scripts
|
|
Chris PeBenito |
fbc0a2 |
type games_t;
|
|
Chris PeBenito |
fbc0a2 |
type games_exec_t;
|
|
Chris PeBenito |
fbc0a2 |
init_system_domain(games_t,games_exec_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
type games_var_run_t;
|
|
Chris PeBenito |
fbc0a2 |
files_pid_file(games_var_run_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
########################################
|
|
Chris PeBenito |
fbc0a2 |
#
|
|
Chris PeBenito |
fbc0a2 |
# Local policy
|
|
Chris PeBenito |
fbc0a2 |
#
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
dontaudit games_t self:capability sys_tty_config;
|
|
Chris PeBenito |
fbc0a2 |
allow games_t self:process signal_perms;
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
allow games_t games_data_t:dir rw_dir_perms;
|
|
Chris PeBenito |
fbc0a2 |
allow games_t games_data_t:file manage_file_perms;
|
|
Chris PeBenito |
fbc0a2 |
allow games_t games_data_t:lnk_file create_lnk_perms;
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
allow games_t games_var_run_t:file manage_file_perms;
|
|
Chris PeBenito |
fbc0a2 |
allow games_t games_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
fbc0a2 |
files_pid_filetrans(games_t,games_var_run_t,file)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
can_exec(games_t,games_exec_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
kernel_read_kernel_sysctls(games_t)
|
|
Chris PeBenito |
fbc0a2 |
kernel_list_proc(games_t)
|
|
Chris PeBenito |
fbc0a2 |
kernel_read_proc_symlinks(games_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
dev_read_sysfs(games_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
fs_getattr_all_fs(games_t)
|
|
Chris PeBenito |
fbc0a2 |
fs_search_auto_mountpoints(games_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
term_dontaudit_use_console(games_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
domain_use_interactive_fds(games_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
init_use_fds(games_t)
|
|
Chris PeBenito |
fbc0a2 |
init_use_script_ptys(games_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
libs_use_ld_so(games_t)
|
|
Chris PeBenito |
fbc0a2 |
libs_use_shared_libs(games_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
logging_send_syslog_msg(games_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
miscfiles_read_localization(games_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
userdom_dontaudit_use_unpriv_user_fds(games_t)
|
|
Chris PeBenito |
fbc0a2 |
userdom_dontaudit_search_sysadm_home_dirs(games_t)
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
ifdef(`targeted_policy', `
|
|
Chris PeBenito |
fbc0a2 |
term_dontaudit_use_unallocated_ttys(games_t)
|
|
Chris PeBenito |
fbc0a2 |
term_dontaudit_use_generic_ptys(games_t)
|
|
Chris PeBenito |
fbc0a2 |
files_dontaudit_read_root_files(games_t)
|
|
Chris PeBenito |
fbc0a2 |
')
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
optional_policy(`selinuxutil',`
|
|
Chris PeBenito |
fbc0a2 |
seutil_sigchld_newrole(games_t)
|
|
Chris PeBenito |
fbc0a2 |
')
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
optional_policy(`udev',`
|
|
Chris PeBenito |
fbc0a2 |
udev_read_db(games_t)
|
|
Chris PeBenito |
fbc0a2 |
')
|
|
Chris PeBenito |
fbc0a2 |
|
|
Chris PeBenito |
fbc0a2 |
ifdef(`TODO',`
|
|
Chris PeBenito |
fbc0a2 |
#WHY!!!
|
|
Chris PeBenito |
fbc0a2 |
#allow initrc_t games_data_t:dir r_dir_perms;
|
|
Chris PeBenito |
fbc0a2 |
#allow initrc_t games_data_t:file r_file_perms;
|
|
Chris PeBenito |
fbc0a2 |
#allow initrc_t games_data_t:lnk_file { getattr read };
|
|
Chris PeBenito |
fbc0a2 |
')
|