您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

vncsession.te 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #
  2. # Copyright 2018-2020 Pierre Ossman for Cendio AB
  3. #
  4. # This is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This software is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this software; if not, write to the Free Software
  16. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
  17. # USA.
  18. #
  19. policy_module(vncsession, 1.0.0);
  20. gen_require(`
  21. attribute userdomain;
  22. type xdm_home_t;
  23. ')
  24. type vnc_session_exec_t;
  25. corecmd_executable_file(vnc_session_exec_t)
  26. type vnc_session_t;
  27. init_daemon_domain(vnc_session_t, vnc_session_exec_t)
  28. auth_login_pgm_domain(vnc_session_t)
  29. type vnc_session_var_run_t;
  30. files_pid_file(vnc_session_var_run_t)
  31. allow vnc_session_t vnc_session_var_run_t:file manage_file_perms;
  32. files_pid_filetrans(vnc_session_t, vnc_session_var_run_t, file)
  33. auth_write_login_records(vnc_session_t)
  34. can_exec(vnc_session_t, vnc_session_exec_t)
  35. userdom_spec_domtrans_all_users(vnc_session_t)
  36. userdom_signal_all_users(vnc_session_t)
  37. allow vnc_session_t self:capability { kill chown dac_override dac_read_search fowner setgid setuid sys_resource };
  38. allow vnc_session_t self:process { getcap setsched setexec setrlimit };
  39. allow vnc_session_t self:fifo_file rw_fifo_file_perms;
  40. manage_files_pattern(vnc_session_t, xdm_home_t, xdm_home_t)
  41. manage_fifo_files_pattern(vnc_session_t, xdm_home_t, xdm_home_t)
  42. manage_sock_files_pattern(vnc_session_t, xdm_home_t, xdm_home_t)
  43. manage_lnk_files_pattern(vnc_session_t, xdm_home_t, xdm_home_t)
  44. userdom_user_home_dir_filetrans(vnc_session_t, xdm_home_t, dir, ".vnc")
  45. userdom_admin_home_dir_filetrans(vnc_session_t, xdm_home_t, dir, ".vnc")
  46. userdom_admin_home_dir_filetrans(userdomain, xdm_home_t, dir, ".vnc")
  47. userdom_user_home_dir_filetrans(userdomain, xdm_home_t, dir, ".vnc")
  48. miscfiles_read_localization(vnc_session_t)
  49. kernel_read_kernel_sysctls(vnc_session_t)
  50. logging_append_all_logs(vnc_session_t)
  51. mcs_process_set_categories(vnc_session_t)
  52. mcs_killall(vnc_session_t)