portage_additional.te 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. policy_module(portage_additional, 0.0.7)
  2. require {
  3. type portage_fetch_t;
  4. type portage_sandbox_t;
  5. type portage_t;
  6. type etc_t;
  7. type ldconfig_cache_t;
  8. type unlabeled_t;
  9. type usr_t;
  10. type portage_conf_t;
  11. type portage_ebuild_t;
  12. type proc_t;
  13. type zero_device_t;
  14. type cert_t;
  15. type porticron_t;
  16. }
  17. allow portage_fetch_t self:process execmem;
  18. corenet_tcp_bind_generic_node(portage_fetch_t)
  19. files_list_boot(portage_fetch_t)
  20. files_list_default(portage_fetch_t)
  21. files_rw_etc_files(portage_fetch_t)
  22. kernel_read_crypto_sysctls(portage_fetch_t)
  23. dev_read_urand(portage_fetch_t)
  24. files_manage_var_files(portage_fetch_t)
  25. files_manage_var_dirs(portage_fetch_t)
  26. files_search_src(portage_fetch_t)
  27. files_getattr_usr_src_files(portage_fetch_t)
  28. fs_getattr_xattr_fs(portage_fetch_t)
  29. files_manage_var_lib_dirs(portage_fetch_t)
  30. manage_files_pattern(portage_fetch_t, var_lib_t, var_lib_t)
  31. allow portage_fetch_t portage_conf_t:file write;
  32. allow portage_fetch_t etc_t:file link;
  33. allow portage_fetch_t portage_ebuild_t:file map;
  34. corenet_udp_bind_generic_node(portage_t)
  35. corenet_tcp_bind_generic_node(portage_t)
  36. files_manage_etc_files(portage_t)
  37. kernel_read_crypto_sysctls(portage_t)
  38. allow portage_t self:process ptrace;
  39. allow portage_t self:capability sys_resource;
  40. allow portage_t unlabeled_t:file { execute execute_no_trans map relabelfrom relabelto };
  41. allow portage_t usr_t:file { execute execute_no_trans };
  42. allow portage_t etc_t:file { relabelfrom relabelto };
  43. allow portage_t self:dir { add_name write };
  44. allow portage_t self:file create;
  45. allow portage_t proc_t:filesystem associate;
  46. allow portage_t cert_t:file map;
  47. allow portage_t portage_ebuild_t:file map;
  48. kernel_read_crypto_sysctls(portage_sandbox_t)
  49. auth_getattr_shadow(portage_sandbox_t)
  50. allow portage_sandbox_t ldconfig_cache_t:file map;
  51. dev_rw_zero(portage_sandbox_t)
  52. fs_getattr_cgroup(portage_sandbox_t)
  53. kernel_getattr_debugfs(portage_sandbox_t)
  54. dev_getattr_fs(portage_sandbox_t)
  55. fs_getattr_pstorefs(portage_sandbox_t)
  56. fs_getattr_tracefs(portage_sandbox_t)
  57. allow portage_sandbox_t zero_device_t:chr_file map;
  58. allow portage_fetch_t porticron_t:fd use;