portage_additional.te 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. }
  16. allow portage_fetch_t self:process execmem;
  17. corenet_tcp_bind_generic_node(portage_fetch_t)
  18. files_list_boot(portage_fetch_t)
  19. files_list_default(portage_fetch_t)
  20. files_rw_etc_files(portage_fetch_t)
  21. kernel_read_crypto_sysctls(portage_fetch_t)
  22. dev_read_urand(portage_fetch_t)
  23. files_manage_var_files(portage_fetch_t)
  24. files_manage_var_dirs(portage_fetch_t)
  25. files_search_src(portage_fetch_t)
  26. files_getattr_usr_src_files(portage_fetch_t)
  27. fs_getattr_xattr_fs(portage_fetch_t)
  28. files_manage_var_lib_dirs(portage_fetch_t)
  29. manage_files_pattern(portage_fetch_t, var_lib_t, var_lib_t)
  30. allow portage_fetch_t portage_conf_t:file write;
  31. allow portage_fetch_t etc_t:file link;
  32. allow portage_fetch_t portage_ebuild_t:file map;
  33. corenet_udp_bind_generic_node(portage_t)
  34. corenet_tcp_bind_generic_node(portage_t)
  35. files_manage_etc_files(portage_t)
  36. kernel_read_crypto_sysctls(portage_t)
  37. allow portage_t self:process ptrace;
  38. allow portage_t self:capability sys_resource;
  39. allow portage_t unlabeled_t:file { execute execute_no_trans map relabelfrom relabelto };
  40. allow portage_t usr_t:file { execute execute_no_trans };
  41. allow portage_t etc_t:file { relabelfrom relabelto };
  42. allow portage_t self:dir { add_name write };
  43. allow portage_t self:file create;
  44. allow portage_t proc_t:filesystem associate;
  45. allow portage_t cert_t:file map;
  46. allow portage_t portage_ebuild_t:file map;
  47. kernel_read_crypto_sysctls(portage_sandbox_t)
  48. auth_getattr_shadow(portage_sandbox_t)
  49. allow portage_sandbox_t ldconfig_cache_t:file map;
  50. dev_rw_zero(portage_sandbox_t)
  51. fs_getattr_cgroup(portage_sandbox_t)
  52. kernel_getattr_debugfs(portage_sandbox_t)
  53. dev_getattr_fs(portage_sandbox_t)
  54. fs_getattr_pstorefs(portage_sandbox_t)
  55. fs_getattr_tracefs(portage_sandbox_t)
  56. allow portage_sandbox_t zero_device_t:chr_file map;