Call init_domain() in addition to init_daemon_domain(), this adds permissions needed...
[selinux.git] / q3a / q3a.te
1 policy_module(q3a, 0.1.25)
2
3 # File context for the executable process
4 type q3a_t;
5 type q3a_exec_t;
6
7 type q3a_rw_t;
8 files_type(q3a_rw_t)
9
10 type q3a_ro_t;
11 files_type(q3a_ro_t)
12
13 _sky_files_use_tmp(q3a_t, q3a_tmp_t)
14
15 init_domain(q3a_t, q3a_exec_t)
16 init_daemon_domain(q3a_t, q3a_exec_t)
17
18 corenet_udp_sendrecv_generic_port(q3a_t)
19 corenet_udp_bind_generic_port(q3a_t)
20 corenet_udp_bind_generic_node(q3a_t)
21
22 read_files_pattern(q3a_t, q3a_ro_t, q3a_ro_t)
23 list_dirs_pattern(q3a_t, q3a_ro_t, q3a_ro_t)
24
25 allow q3a_t q3a_ro_t:dir list_dir_perms;
26 allow q3a_t q3a_ro_t:file read_file_perms;
27
28 manage_files_pattern(q3a_t, q3a_rw_t, q3a_rw_t)
29 manage_dirs_pattern(q3a_t, q3a_rw_t, q3a_rw_t)
30 setattr_files_pattern(q3a_t, q3a_rw_t, q3a_rw_t)
31
32 sysnet_dns_name_resolve(q3a_t)
33
34 dev_read_urand(q3a_t)
35
36 allow q3a_t self:process execmem;