Update cod4, q3a, quake2, tesseract, tf2, ts3 and ut2004 to new interfaces
[selinux.git] / ut2004 / ut2004.te
1 policy_module(ut2004, 0.1.2)
2
3 require {
4     type interwise_port_t;
5 }
6
7 # File context for the executable process
8 type ut2004_t;
9 type ut2004_exec_t;
10
11 type ut2004_rw_t;
12 files_type(ut2004_rw_t)
13
14 type ut2004_ro_t;
15 files_type(ut2004_ro_t)
16
17 init_daemon_domain(ut2004_t, ut2004_exec_t)
18
19 corenet_udp_sendrecv_generic_port(ut2004_t)
20 corenet_udp_bind_generic_port(ut2004_t)
21 corenet_udp_bind_generic_node(ut2004_t)
22
23 read_files_pattern(ut2004_t, ut2004_ro_t, ut2004_ro_t)
24
25 manage_files_pattern(ut2004_t, ut2004_rw_t, ut2004_rw_t)
26 manage_dirs_pattern(ut2004_t, ut2004_rw_t, ut2004_rw_t)
27 setattr_files_pattern(ut2004_t, ut2004_rw_t, ut2004_rw_t)
28
29 sysnet_dns_name_resolve(ut2004_t)
30 #files_tmp_filetrans(ut2004_t, ut2004_tmp_t, { file dir})
31
32 # The UT2004 default port is labelled interwise_port_t on some
33 # Fedora policies
34 allow ut2004_t interwise_port_t:udp_socket name_bind;