1
## <summary>X Window Managers</summary>
3
#######################################
5
## The role template for the wm module.
9
## This template creates a derived domains which are used
10
## for window manager applications.
13
## <param name="role_prefix">
15
## The prefix of the user domain (e.g., user
16
## is the prefix for user_t).
19
## <param name="user_role">
21
## The role associated with the user domain.
24
## <param name="user_domain">
26
## The type of the user domain.
30
template(`wm_role_template',`
37
domain_entry_file($1_wm_t, wm_exec_t)
38
role $2 types $1_wm_t;
40
allow $1_wm_t self:fifo_file rw_fifo_file_perms;
41
allow $1_wm_t self:process getsched;
42
allow $1_wm_t self:shm create_shm_perms;
44
allow $1_wm_t $3:unix_stream_socket connectto;
46
domtrans_pattern($3, wm_exec_t, $1_wm_t)
48
kernel_read_system_state($1_wm_t)
50
corecmd_bin_domtrans($1_wm_t, $3)
51
corecmd_shell_domtrans($1_wm_t, $3)
53
dev_read_urand($1_wm_t)
55
files_read_etc_files($1_wm_t)
56
files_read_usr_files($1_wm_t)
58
mls_file_read_all_levels($1_wm_t)
59
mls_file_write_all_levels($1_wm_t)
60
mls_xwin_read_all_levels($1_wm_t)
61
mls_xwin_write_all_levels($1_wm_t)
62
mls_fd_use_all_levels($1_wm_t)
64
auth_use_nsswitch($1_wm_t)
66
miscfiles_read_fonts($1_wm_t)
67
miscfiles_read_localization($1_wm_t)
69
userdom_manage_home_role($2, $1_wm_t)
70
userdom_manage_tmpfs_role($2, $1_wm_t)
71
userdom_manage_tmp_role($2, $1_wm_t)
74
dbus_system_bus_client($1_wm_t)
78
xserver_role($2, $1_wm_t)
82
########################################
84
## Execute the wm program in the wm domain.
86
## <param name="domain">
88
## Domain allowed access.
97
can_exec($1, wm_exec_t)