X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=cod4%2Fcod4.te;h=17885b676eb749a22c34cf3db1df56f75bb9e764;hb=d2b7c306571374f9aae2f6409f47f34301af490b;hp=9d9a7a37c31b87ba62d26412ced5752cbd2fccff;hpb=1f1b238b667e901fa43a79d9e3e73d6e8e5eb7cd;p=selinux.git diff --git a/cod4/cod4.te b/cod4/cod4.te index 9d9a7a3..17885b6 100644 --- a/cod4/cod4.te +++ b/cod4/cod4.te @@ -1,4 +1,4 @@ -policy_module(cod4, 0.1.13) +policy_module(cod4, 0.1.33) # File context for the executable process type cod4_t; @@ -10,17 +10,20 @@ files_type(cod4_rw_t) type cod4_ro_t; files_type(cod4_ro_t) +init_domain(cod4_t, cod4_exec_t) init_daemon_domain(cod4_t, cod4_exec_t) corenet_udp_sendrecv_generic_port(cod4_t) corenet_udp_bind_generic_port(cod4_t) corenet_udp_bind_generic_node(cod4_t) -allow cod4_t cod4_ro_t:dir list_dir_perms; -allow cod4_t cod4_ro_t:file read_file_perms; +read_files_pattern(cod4_t, cod4_ro_t, cod4_ro_t) +list_dirs_pattern(cod4_t, cod4_ro_t, cod4_ro_t) manage_files_pattern(cod4_t, cod4_rw_t, cod4_rw_t) manage_dirs_pattern(cod4_t, cod4_rw_t, cod4_rw_t) setattr_files_pattern(cod4_t, cod4_rw_t, cod4_rw_t) sysnet_dns_name_resolve(cod4_t) + +allow init_t cod4_t:process { noatsecure };