Add q3a policy
[selinux.git] / q3a / q3a.te
1 policy_module(q3a, 0.1.13)
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 type q3a_tmp_t;
14 files_tmp_file(q3a_tmp_t)
15
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 allow q3a_t q3a_ro_t:dir list_dir_perms;
23 allow q3a_t q3a_ro_t:file read_file_perms;
24 allow q3a_t q3a_tmp_t:file manage_file_perms;
25 allow q3a_t q3a_tmp_t:dir manage_dir_perms;
26
27 manage_files_pattern(q3a_t, q3a_rw_t, q3a_rw_t)
28 manage_dirs_pattern(q3a_t, q3a_rw_t, q3a_rw_t)
29 setattr_files_pattern(q3a_t, q3a_rw_t, q3a_rw_t)
30
31 sysnet_dns_name_resolve(q3a_t)
32 files_tmp_filetrans(q3a_t, q3a_tmp_t, { file dir})