d0c204d7b9dce3a7e6e0e6426d20c28414d4fdd3
[selinux.git] / q3a / q3a.te
1 policy_module(q3a, 0.1.24)
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_daemon_domain(q3a_t, q3a_exec_t)
16
17 corenet_udp_sendrecv_generic_port(q3a_t)
18 corenet_udp_bind_generic_port(q3a_t)
19 corenet_udp_bind_generic_node(q3a_t)
20
21 read_files_pattern(q3a_t, q3a_ro_t, q3a_ro_t)
22 list_dirs_pattern(q3a_t, q3a_ro_t, q3a_ro_t)
23
24 allow q3a_t q3a_ro_t:dir list_dir_perms;
25 allow q3a_t q3a_ro_t:file read_file_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
33 dev_read_urand(q3a_t)
34
35 allow q3a_t self:process execmem;