X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=tesseract%2Ftesseract.te;fp=tesseract%2Ftesseract.te;h=1de962f44651f9e3c55580c37175c38be8712190;hb=0e7657673c0fa43bd215b837243fac43800ed723;hp=0000000000000000000000000000000000000000;hpb=7ddf20a71a910f0f2e892ce09d611e1af31738d9;p=selinux.git diff --git a/tesseract/tesseract.te b/tesseract/tesseract.te new file mode 100644 index 0000000..1de962f --- /dev/null +++ b/tesseract/tesseract.te @@ -0,0 +1,32 @@ +policy_module(tesseract, 0.1.0) + +# File context for the executable process +type tesseract_t; +type tesseract_exec_t; + +type tesseract_rw_t; +files_type(tesseract_rw_t) + +type tesseract_ro_t; +files_type(tesseract_ro_t) + +#type tesseract_tmp_t; +#files_tmp_file(tesseract_tmp_t) + +init_daemon_domain(tesseract_t, tesseract_exec_t) + +corenet_udp_sendrecv_generic_port(tesseract_t) +corenet_udp_bind_generic_port(tesseract_t) +corenet_udp_bind_generic_node(tesseract_t) + +allow tesseract_t tesseract_ro_t:dir list_dir_perms; +allow tesseract_t tesseract_ro_t:file read_file_perms; +#allow tesseract_t tesseract_tmp_t:file manage_file_perms; +#allow tesseract_t tesseract_tmp_t:dir manage_dir_perms; + +#manage_files_pattern(tesseract_t, tesseract_rw_t, tesseract_rw_t) +#manage_dirs_pattern(tesseract_t, tesseract_rw_t, tesseract_rw_t) +#setattr_files_pattern(tesseract_t, tesseract_rw_t, tesseract_rw_t) + +sysnet_dns_name_resolve(tesseract_t) +#files_tmp_filetrans(tesseract_t, tesseract_tmp_t, { file dir})