X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=q3a%2Fq3a.te;h=d0c204d7b9dce3a7e6e0e6426d20c28414d4fdd3;hb=0dfeb8f2061440ca69c8144aa91047f7cd77b7a9;hp=a154cf9bbc15333403193d5790ac591531bd8183;hpb=bf6d46759c3ed88e350792850d61282c29100309;p=selinux.git diff --git a/q3a/q3a.te b/q3a/q3a.te index a154cf9..d0c204d 100644 --- a/q3a/q3a.te +++ b/q3a/q3a.te @@ -1,4 +1,4 @@ -policy_module(q3a, 0.1.13) +policy_module(q3a, 0.1.24) # File context for the executable process type q3a_t; @@ -10,8 +10,7 @@ files_type(q3a_rw_t) type q3a_ro_t; files_type(q3a_ro_t) -type q3a_tmp_t; -files_tmp_file(q3a_tmp_t) +_sky_files_use_tmp(q3a_t, q3a_tmp_t) init_daemon_domain(q3a_t, q3a_exec_t) @@ -19,14 +18,18 @@ corenet_udp_sendrecv_generic_port(q3a_t) corenet_udp_bind_generic_port(q3a_t) corenet_udp_bind_generic_node(q3a_t) +read_files_pattern(q3a_t, q3a_ro_t, q3a_ro_t) +list_dirs_pattern(q3a_t, q3a_ro_t, q3a_ro_t) + allow q3a_t q3a_ro_t:dir list_dir_perms; allow q3a_t q3a_ro_t:file read_file_perms; -allow q3a_t q3a_tmp_t:file manage_file_perms; -allow q3a_t q3a_tmp_t:dir manage_dir_perms; manage_files_pattern(q3a_t, q3a_rw_t, q3a_rw_t) manage_dirs_pattern(q3a_t, q3a_rw_t, q3a_rw_t) setattr_files_pattern(q3a_t, q3a_rw_t, q3a_rw_t) sysnet_dns_name_resolve(q3a_t) -files_tmp_filetrans(q3a_t, q3a_tmp_t, { file dir}) + +dev_read_urand(q3a_t) + +allow q3a_t self:process execmem;