Call init_domain() in addition to init_daemon_domain(), this adds permissions needed...
[selinux.git] / cod4 / cod4.te
1 policy_module(cod4, 0.1.33)
2
3 # File context for the executable process
4 type cod4_t;
5 type cod4_exec_t;
6
7 type cod4_rw_t;
8 files_type(cod4_rw_t)
9
10 type cod4_ro_t;
11 files_type(cod4_ro_t)
12
13 init_domain(cod4_t, cod4_exec_t)
14 init_daemon_domain(cod4_t, cod4_exec_t)
15
16 corenet_udp_sendrecv_generic_port(cod4_t)
17 corenet_udp_bind_generic_port(cod4_t)
18 corenet_udp_bind_generic_node(cod4_t)
19
20 read_files_pattern(cod4_t, cod4_ro_t, cod4_ro_t)
21 list_dirs_pattern(cod4_t, cod4_ro_t, cod4_ro_t)
22
23 manage_files_pattern(cod4_t, cod4_rw_t, cod4_rw_t)
24 manage_dirs_pattern(cod4_t, cod4_rw_t, cod4_rw_t)
25 setattr_files_pattern(cod4_t, cod4_rw_t, cod4_rw_t)
26
27 sysnet_dns_name_resolve(cod4_t)
28
29 allow init_t cod4_t:process { noatsecure };