1sandbox_xserver_selinux(8S)ELinux Policy sandbox_xservesrandbox_xserver_selinux(8)
2
3
4
6 sandbox_xserver_selinux - Security Enhanced Linux Policy for the sand‐
7 box_xserver processes
8
10 Security-Enhanced Linux secures the sandbox_xserver processes via flex‐
11 ible mandatory access control.
12
13 The sandbox_xserver processes execute with the sandbox_xserver_t
14 SELinux type. You can check if you have these processes running by exe‐
15 cuting the ps command with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep sandbox_xserver_t
20
21
22
24 The sandbox_xserver_t SELinux type can be entered via the
25 xserver_exec_t file type.
26
27 The default entrypoint paths for the sandbox_xserver_t domain are the
28 following:
29
30 /usr/bin/nvidia.*, /usr/bin/Xair, /usr/bin/Xorg, /usr/bin/Xvnc,
31 /usr/bin/Xephyr, /usr/bin/x11vnc, /usr/X11R6/bin/X,
32 /usr/X11R6/bin/Xorg, /usr/X11R6/bin/Xipaq, /usr/libexec/Xorg.bin,
33 /usr/X11R6/bin/XFree86, /usr/libexec/Xorg.wrap, /usr/X11R6/bin/Xwrap‐
34 per, /usr/libexec/gsd-backlight-helper
35
37 SELinux defines process types (domains) for each process running on the
38 system
39
40 You can see the context of a process using the -Z option to ps
41
42 Policy governs the access confined processes have to files. SELinux
43 sandbox_xserver policy is very flexible allowing users to setup their
44 sandbox_xserver processes in as secure a method as possible.
45
46 The following process types are defined for sandbox_xserver:
47
48 sandbox_xserver_t
49
50 Note: semanage permissive -a sandbox_xserver_t can be used to make the
51 process type sandbox_xserver_t permissive. SELinux does not deny access
52 to permissive process types, but the AVC (SELinux denials) messages are
53 still generated.
54
55
57 SELinux policy is customizable based on least access required. sand‐
58 box_xserver policy is extremely flexible and has several booleans that
59 allow you to manipulate the policy and run sandbox_xserver with the
60 tightest access possible.
61
62
63
64 If you want to deny user domains applications to map a memory region as
65 both executable and writable, this is dangerous and the executable
66 should be reported in bugzilla, you must turn on the deny_execmem bool‐
67 ean. Enabled by default.
68
69 setsebool -P deny_execmem 1
70
71
72
73 If you want to allow regular users direct dri device access, you must
74 turn on the selinuxuser_direct_dri_enabled boolean. Disabled by
75 default.
76
77 setsebool -P selinuxuser_direct_dri_enabled 1
78
79
80
81 If you want to support fusefs home directories, you must turn on the
82 use_fusefs_home_dirs boolean. Disabled by default.
83
84 setsebool -P use_fusefs_home_dirs 1
85
86
87
88 If you want to support NFS home directories, you must turn on the
89 use_nfs_home_dirs boolean. Enabled by default.
90
91 setsebool -P use_nfs_home_dirs 1
92
93
94
95 If you want to support SAMBA home directories, you must turn on the
96 use_samba_home_dirs boolean. Disabled by default.
97
98 setsebool -P use_samba_home_dirs 1
99
100
101
102 If you want to allows clients to write to the X server shared memory
103 segments, you must turn on the xserver_clients_write_xshm boolean. Dis‐
104 abled by default.
105
106 setsebool -P xserver_clients_write_xshm 1
107
108
109
111 The SELinux process type sandbox_xserver_t can manage files labeled
112 with the following file types. The paths listed are the default paths
113 for these file types. Note the processes UID still need to have DAC
114 permissions.
115
116 sandbox_file_t
117
118
119 sandbox_xserver_tmpfs_t
120
121
122 security_t
123
124 /selinux
125
126 user_fonts_cache_t
127
128 /root/.fontconfig(/.*)?
129 /root/.fonts/auto(/.*)?
130 /root/.fonts.cache-.*
131 /root/.cache/fontconfig(/.*)?
132 /home/[^/]+/.fontconfig(/.*)?
133 /home/[^/]+/.fonts/auto(/.*)?
134 /home/[^/]+/.fonts.cache-.*
135 /home/[^/]+/.cache/fontconfig(/.*)?
136
137
139 semanage fcontext can also be used to manipulate default file context
140 mappings.
141
142 semanage permissive can also be used to manipulate whether or not a
143 process type is permissive.
144
145 semanage module can also be used to enable/disable/install/remove pol‐
146 icy modules.
147
148 semanage boolean can also be used to manipulate the booleans
149
150
151 system-config-selinux is a GUI tool available to customize SELinux pol‐
152 icy settings.
153
154
156 This manual page was auto-generated using sepolicy manpage .
157
158
160 selinux(8), sandbox_xserver(8), semanage(8), restorecon(8), chcon(1),
161 sepolicy(8), setsebool(8)
162
163
164
165sandbox_xserver 20-05-05 sandbox_xserver_selinux(8)