Skip to content

Commit

Permalink
Fix SELinux policy for sandbox X server to fix 'sandbox -X' command
Browse files Browse the repository at this point in the history
  • Loading branch information
krishjainx committed Sep 4, 2024
1 parent f843a1e commit 3ffa5f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions policy/modules/contrib/sandboxX.te
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ manage_fifo_files_pattern(sandbox_xserver_t, sandbox_xserver_tmpfs_t, sandbox_xs
manage_sock_files_pattern(sandbox_xserver_t, sandbox_xserver_tmpfs_t, sandbox_xserver_tmpfs_t)
fs_tmpfs_filetrans(sandbox_xserver_t, sandbox_xserver_tmpfs_t, { dir file lnk_file sock_file fifo_file })

allow sandbox_xserver_t sandbox_xserver_tmpfs_t:file map;

kernel_dontaudit_request_load_module(sandbox_xserver_t)
kernel_read_device_sysctls(sandbox_xserver_t)
kernel_read_system_state(sandbox_xserver_t)

corecmd_exec_bin(sandbox_xserver_t)
Expand Down Expand Up @@ -93,6 +96,7 @@ domain_use_interactive_fds(sandbox_xserver_t)
files_read_config_files(sandbox_xserver_t)
files_search_home(sandbox_xserver_t)
fs_dontaudit_rw_tmpfs_files(sandbox_xserver_t)
fs_getattr_xattr_fs(sandbox_xserver_t)
fs_search_auto_mountpoints(sandbox_xserver_t)

miscfiles_read_fonts(sandbox_xserver_t)
Expand Down

0 comments on commit 3ffa5f7

Please sign in to comment.