overviewer.te 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. policy_module(overviewer, 0.1.2)
  2. #################################
  3. #
  4. # Declarations
  5. #
  6. type overviewer_t;
  7. type overviewer_exec_t;
  8. init_system_domain(overviewer_t, overviewer_exec_t)
  9. ########################################
  10. #
  11. # Local policy
  12. #
  13. allow overviewer_t self:fifo_file { getattr ioctl read write };
  14. gen_require(`
  15. type minecraft_opt_t;
  16. ')
  17. search_dirs_pattern(overviewer_t, minecraft_opt_t, minecraft_opt_t)
  18. read_files_pattern(overviewer_t, minecraft_opt_t, minecraft_opt_t)
  19. allow overviewer_t minecraft_opt_t:dir read;
  20. apache_manage_sys_content(overviewer_t)
  21. corecmd_exec_all_executables(overviewer_t)
  22. corecmd_exec_shell(overviewer_t)
  23. files_read_etc_files(overviewer_t)
  24. files_manage_generic_tmp_files(overviewer_t)
  25. miscfiles_read_localization(overviewer_t)
  26. dev_read_urand(overviewer_t)
  27. gen_require(`
  28. type tmp_t;
  29. ')
  30. allow overviewer_t tmp_t:file execute;
  31. optional_policy(`
  32. cron_system_entry(overviewer_t, overviewer_exec_t)
  33. ')
  34. gen_require(`
  35. type crond_tmp_t;
  36. ')
  37. allow overviewer_t crond_tmp_t:file { read write ioctl getattr };