selinux-policy/policy/modules/apps/games.te
Chris PeBenito 1900668638 trunk: Unified labeled networking policy from Paul Moore.
The latest revision of the labeled policy patches which enable both labeled 
and unlabeled policy support for NetLabel.  This revision takes into account
Chris' feedback from the first version and reduces the number of interface
calls in each domain down to two at present: one for unlabeled access, one for
NetLabel access.  The older, transport layer specific interfaces, are still  
present for use by third-party modules but are not used in the default policy
modules.

trunk: Use netmsg initial SID for MLS-only Netlabel packets, from Paul Moore.

This patch changes the policy to use the netmsg initial SID as the "base"
SID/context for NetLabel packets which only have MLS security attributes.
Currently we use the unlabeled initial SID which makes it very difficult to
distinquish between actual unlabeled packets and those packets which have MLS
security attributes.
2007-06-27 15:23:21 +00:00

76 lines
1.5 KiB
Plaintext

policy_module(games,1.2.1)
########################################
#
# 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;
manage_files_pattern(games_t,games_data_t,games_data_t)
manage_lnk_files_pattern(games_t,games_data_t,games_data_t)
manage_files_pattern(games_t,games_var_run_t,games_var_run_t)
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(`
seutil_sigchld_newrole(games_t)
')
optional_policy(`
udev_read_db(games_t)
')