aboutsummaryrefslogtreecommitdiff
blob: 7c7f7fa837f7f66836fdc233dff037e5653169c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
policy_module(wm, 1.2.5)

########################################
#
# Declarations
#

attribute wm_domain;

type wm_exec_t;

########################################
#
# Common wm domain local policy
#

allow wm_domain self:fifo_file rw_fifo_file_perms;
allow wm_domain self:process getsched;
allow wm_domain self:shm create_shm_perms;
allow wm_domain self:unix_dgram_socket create_socket_perms;

kernel_read_system_state(wm_domain)

dev_read_urand(wm_domain)

files_read_usr_files(wm_domain)

miscfiles_read_fonts(wm_domain)
miscfiles_read_localization(wm_domain)

userdom_manage_user_tmp_sockets(wm_domain)
userdom_tmp_filetrans_user_tmp(wm_domain, sock_file)

userdom_manage_user_home_content_dirs(wm_domain)
userdom_manage_user_home_content_files(wm_domain)
userdom_user_home_dir_filetrans_user_home_content(wm_domain, { dir file })