1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
policy_module(games, 2.2.1)
########################################
#
# Declarations
#
attribute_role games_roles;
type games_t;
type games_exec_t;
typealias games_t alias { user_games_t staff_games_t sysadm_games_t };
typealias games_t alias { auditadm_games_t secadm_games_t };
userdom_user_application_domain(games_t, games_exec_t)
role games_roles types games_t;
type games_data_t;
typealias games_data_t alias { user_games_data_t staff_games_data_t sysadm_games_data_t };
typealias games_data_t alias { auditadm_games_data_t secadm_games_data_t };
files_type(games_data_t)
ubac_constrained(games_data_t)
type games_devpts_t;
typealias games_devpts_t alias { user_games_devpts_t staff_games_devpts_t sysadm_games_devpts_t };
typealias games_devpts_t alias { auditadm_games_devpts_t secadm_games_devpts_t };
term_pty(games_devpts_t)
ubac_constrained(games_devpts_t)
type games_srv_t;
init_system_domain(games_srv_t, games_exec_t)
type games_srv_var_run_t;
files_pid_file(games_srv_var_run_t)
type games_tmp_t;
typealias games_tmp_t alias { user_games_tmp_t staff_games_tmp_t sysadm_games_tmp_t };
typealias games_tmp_t alias { auditadm_games_tmp_t secadm_games_tmp_t };
userdom_user_tmp_file(games_tmp_t)
type games_tmpfs_t;
typealias games_tmpfs_t alias { user_games_tmpfs_t staff_games_tmpfs_t sysadm_games_tmpfs_t };
typealias games_tmpfs_t alias { auditadm_games_tmpfs_t secadm_games_tmpfs_t };
userdom_user_tmpfs_file(games_tmpfs_t)
########################################
#
# Server local policy
#
dontaudit games_srv_t self:capability sys_tty_config;
allow games_srv_t self:process signal_perms;
manage_files_pattern(games_srv_t, games_data_t, games_data_t)
manage_lnk_files_pattern(games_srv_t, games_data_t, games_data_t)
manage_files_pattern(games_srv_t, games_srv_var_run_t, games_srv_var_run_t)
files_pid_filetrans(games_srv_t, games_srv_var_run_t, file)
can_exec(games_srv_t, games_exec_t)
kernel_read_kernel_sysctls(games_srv_t)
kernel_list_proc(games_srv_t)
kernel_read_proc_symlinks(games_srv_t)
dev_read_sysfs(games_srv_t)
fs_getattr_all_fs(games_srv_t)
fs_search_auto_mountpoints(games_srv_t)
term_dontaudit_use_console(games_srv_t)
domain_use_interactive_fds(games_srv_t)
init_use_fds(games_srv_t)
init_use_script_ptys(games_srv_t)
logging_send_syslog_msg(games_srv_t)
miscfiles_read_localization(games_srv_t)
userdom_dontaudit_use_unpriv_user_fds(games_srv_t)
userdom_dontaudit_search_user_home_dirs(games_srv_t)
optional_policy(`
seutil_sigchld_newrole(games_srv_t)
')
optional_policy(`
udev_read_db(games_srv_t)
')
########################################
#
# Client local policy
#
allow games_t self:sem create_sem_perms;
allow games_t self:tcp_socket create_stream_socket_perms;
allow games_t self:udp_socket create_socket_perms;
manage_files_pattern(games_t, games_data_t, games_data_t)
manage_lnk_files_pattern(games_t, games_data_t, games_data_t)
allow games_t games_devpts_t:chr_file { rw_chr_file_perms setattr };
term_create_pty(games_t, games_devpts_t)
manage_dirs_pattern(games_t, games_tmp_t, games_tmp_t)
manage_files_pattern(games_t, games_tmp_t, games_tmp_t)
files_tmp_filetrans(games_t, games_tmp_t, { file dir })
manage_files_pattern(games_t, games_tmpfs_t, games_tmpfs_t)
manage_lnk_files_pattern(games_t, games_tmpfs_t, games_tmpfs_t)
manage_fifo_files_pattern(games_t, games_tmpfs_t, games_tmpfs_t)
manage_sock_files_pattern(games_t, games_tmpfs_t, games_tmpfs_t)
fs_tmpfs_filetrans(games_t, games_tmpfs_t, { file lnk_file sock_file fifo_file })
can_exec(games_t, games_exec_t)
kernel_read_system_state(games_t)
corecmd_exec_bin(games_t)
corenet_all_recvfrom_unlabeled(games_t)
corenet_all_recvfrom_netlabel(games_t)
corenet_tcp_sendrecv_generic_if(games_t)
corenet_tcp_sendrecv_generic_node(games_t)
corenet_tcp_sendrecv_all_ports(games_t)
corenet_tcp_bind_generic_node(games_t)
corenet_sendrecv_generic_server_packets(games_t)
corenet_tcp_bind_generic_port(games_t)
corenet_sendrecv_generic_client_packets(games_t)
corenet_tcp_connect_generic_port(games_t)
dev_read_sound(games_t)
dev_read_input(games_t)
dev_read_mouse(games_t)
dev_read_urand(games_t)
dev_write_sound(games_t)
files_list_var(games_t)
files_search_var_lib(games_t)
files_dontaudit_search_var(games_t)
files_read_etc_files(games_t)
files_read_usr_files(games_t)
files_read_var_files(games_t)
init_dontaudit_rw_utmp(games_t)
logging_dontaudit_search_logs(games_t)
miscfiles_read_man_pages(games_t)
miscfiles_read_localization(games_t)
sysnet_read_config(games_t)
userdom_manage_user_tmp_dirs(games_t)
userdom_manage_user_tmp_files(games_t)
userdom_manage_user_tmp_symlinks(games_t)
userdom_manage_user_tmp_sockets(games_t)
userdom_dontaudit_read_user_home_content_files(games_t)
tunable_policy(`allow_execmem',`
allow games_t self:process execmem;
')
optional_policy(`
nscd_socket_use(games_t)
')
optional_policy(`
xserver_user_x_domain_template(games, games_t, games_tmpfs_t)
xserver_create_xdm_tmp_sockets(games_t)
xserver_read_xdm_lib_files(games_t)
')
|