X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=selinux.git;a=blobdiff_plain;f=q3a%2Fq3a.te;h=9665023ac11fe41b978d9c7e709a9c4a063563ee;hp=a154cf9bbc15333403193d5790ac591531bd8183;hb=HEAD;hpb=bf6d46759c3ed88e350792850d61282c29100309 diff --git a/q3a/q3a.te b/q3a/q3a.te index a154cf9..9665023 100644 --- a/q3a/q3a.te +++ b/q3a/q3a.te @@ -1,4 +1,8 @@ -policy_module(q3a, 0.1.13) +policy_module(q3a, 0.1.26) + +require { + type games_data_t; +} # File context for the executable process type q3a_t; @@ -10,23 +14,29 @@ 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_domain(q3a_t, q3a_exec_t) init_daemon_domain(q3a_t, q3a_exec_t) 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; + +list_dirs_pattern(q3a_t, games_data_t, games_data_t)