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

78 lines
1.6 KiB
Plaintext
Raw Normal View History

2006-03-21 18:07:53 +00:00
2006-10-18 19:25:27 +00:00
policy_module(games,1.1.0)
2006-03-21 18:07:53 +00:00
########################################
#
# Declarations
#
type games_data_t;
files_type(games_data_t)
# games_t is for system operation of games, generic games daemons and
# games recovery scripts
type games_t;
type games_exec_t;
init_system_domain(games_t,games_exec_t)
type games_var_run_t;
files_pid_file(games_var_run_t)
########################################
#
# Local policy
#
dontaudit games_t self:capability sys_tty_config;
allow games_t self:process signal_perms;
allow games_t games_data_t:dir rw_dir_perms;
allow games_t games_data_t:file manage_file_perms;
allow games_t games_data_t:lnk_file create_lnk_perms;
allow games_t games_var_run_t:file manage_file_perms;
allow games_t games_var_run_t:dir rw_dir_perms;
files_pid_filetrans(games_t,games_var_run_t,file)
can_exec(games_t,games_exec_t)
kernel_read_kernel_sysctls(games_t)
kernel_list_proc(games_t)
kernel_read_proc_symlinks(games_t)
dev_read_sysfs(games_t)
fs_getattr_all_fs(games_t)
fs_search_auto_mountpoints(games_t)
term_dontaudit_use_console(games_t)
domain_use_interactive_fds(games_t)
init_use_fds(games_t)
init_use_script_ptys(games_t)
libs_use_ld_so(games_t)
libs_use_shared_libs(games_t)
logging_send_syslog_msg(games_t)
miscfiles_read_localization(games_t)
userdom_dontaudit_use_unpriv_user_fds(games_t)
userdom_dontaudit_search_sysadm_home_dirs(games_t)
ifdef(`targeted_policy', `
term_dontaudit_use_unallocated_ttys(games_t)
term_dontaudit_use_generic_ptys(games_t)
files_dontaudit_read_root_files(games_t)
')
optional_policy(`
2006-03-21 18:07:53 +00:00
seutil_sigchld_newrole(games_t)
')
optional_policy(`
2006-03-21 18:07:53 +00:00
udev_read_db(games_t)
')