1 | /************************************************************
|
---|
2 |
|
---|
3 | Author: Eamon Walsh <[email protected]>
|
---|
4 |
|
---|
5 | Permission to use, copy, modify, distribute, and sell this software and its
|
---|
6 | documentation for any purpose is hereby granted without fee, provided that
|
---|
7 | this permission notice appear in supporting documentation. This permission
|
---|
8 | notice shall be included in all copies or substantial portions of the
|
---|
9 | Software.
|
---|
10 |
|
---|
11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
12 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
13 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
---|
14 | AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
---|
15 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
16 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
---|
17 |
|
---|
18 | ********************************************************/
|
---|
19 |
|
---|
20 | #ifndef _XSELINUX_H
|
---|
21 | #define _XSELINUX_H
|
---|
22 |
|
---|
23 | #include "dixaccess.h"
|
---|
24 |
|
---|
25 | /* Extension info */
|
---|
26 | #define SELINUX_EXTENSION_NAME "SELinux"
|
---|
27 | #define SELINUX_MAJOR_VERSION 1
|
---|
28 | #define SELINUX_MINOR_VERSION 0
|
---|
29 | #define SELinuxNumberEvents 0
|
---|
30 | #define SELinuxNumberErrors 0
|
---|
31 |
|
---|
32 | /* Extension protocol */
|
---|
33 | #define X_SELinuxQueryVersion 0
|
---|
34 | #define X_SELinuxSetDeviceCreateContext 1
|
---|
35 | #define X_SELinuxGetDeviceCreateContext 2
|
---|
36 | #define X_SELinuxSetDeviceContext 3
|
---|
37 | #define X_SELinuxGetDeviceContext 4
|
---|
38 | #define X_SELinuxSetWindowCreateContext 5
|
---|
39 | #define X_SELinuxGetWindowCreateContext 6
|
---|
40 | #define X_SELinuxGetWindowContext 7
|
---|
41 | #define X_SELinuxSetPropertyCreateContext 8
|
---|
42 | #define X_SELinuxGetPropertyCreateContext 9
|
---|
43 | #define X_SELinuxSetPropertyUseContext 10
|
---|
44 | #define X_SELinuxGetPropertyUseContext 11
|
---|
45 | #define X_SELinuxGetPropertyContext 12
|
---|
46 | #define X_SELinuxGetPropertyDataContext 13
|
---|
47 | #define X_SELinuxListProperties 14
|
---|
48 | #define X_SELinuxSetSelectionCreateContext 15
|
---|
49 | #define X_SELinuxGetSelectionCreateContext 16
|
---|
50 | #define X_SELinuxSetSelectionUseContext 17
|
---|
51 | #define X_SELinuxGetSelectionUseContext 18
|
---|
52 | #define X_SELinuxGetSelectionContext 19
|
---|
53 | #define X_SELinuxGetSelectionDataContext 20
|
---|
54 | #define X_SELinuxListSelections 21
|
---|
55 | #define X_SELinuxGetClientContext 22
|
---|
56 |
|
---|
57 | typedef struct {
|
---|
58 | CARD8 reqType;
|
---|
59 | CARD8 SELinuxReqType;
|
---|
60 | CARD16 length;
|
---|
61 | CARD8 client_major;
|
---|
62 | CARD8 client_minor;
|
---|
63 | } SELinuxQueryVersionReq;
|
---|
64 |
|
---|
65 | typedef struct {
|
---|
66 | CARD8 type;
|
---|
67 | CARD8 pad1;
|
---|
68 | CARD16 sequenceNumber;
|
---|
69 | CARD32 length;
|
---|
70 | CARD16 server_major;
|
---|
71 | CARD16 server_minor;
|
---|
72 | CARD32 pad2;
|
---|
73 | CARD32 pad3;
|
---|
74 | CARD32 pad4;
|
---|
75 | CARD32 pad5;
|
---|
76 | CARD32 pad6;
|
---|
77 | } SELinuxQueryVersionReply;
|
---|
78 |
|
---|
79 | typedef struct {
|
---|
80 | CARD8 reqType;
|
---|
81 | CARD8 SELinuxReqType;
|
---|
82 | CARD16 length;
|
---|
83 | CARD32 context_len;
|
---|
84 | } SELinuxSetCreateContextReq;
|
---|
85 |
|
---|
86 | typedef struct {
|
---|
87 | CARD8 reqType;
|
---|
88 | CARD8 SELinuxReqType;
|
---|
89 | CARD16 length;
|
---|
90 | } SELinuxGetCreateContextReq;
|
---|
91 |
|
---|
92 | typedef struct {
|
---|
93 | CARD8 reqType;
|
---|
94 | CARD8 SELinuxReqType;
|
---|
95 | CARD16 length;
|
---|
96 | CARD32 id;
|
---|
97 | CARD32 context_len;
|
---|
98 | } SELinuxSetContextReq;
|
---|
99 |
|
---|
100 | typedef struct {
|
---|
101 | CARD8 reqType;
|
---|
102 | CARD8 SELinuxReqType;
|
---|
103 | CARD16 length;
|
---|
104 | CARD32 id;
|
---|
105 | } SELinuxGetContextReq;
|
---|
106 |
|
---|
107 | typedef struct {
|
---|
108 | CARD8 reqType;
|
---|
109 | CARD8 SELinuxReqType;
|
---|
110 | CARD16 length;
|
---|
111 | CARD32 window;
|
---|
112 | CARD32 property;
|
---|
113 | } SELinuxGetPropertyContextReq;
|
---|
114 |
|
---|
115 | typedef struct {
|
---|
116 | CARD8 type;
|
---|
117 | CARD8 pad1;
|
---|
118 | CARD16 sequenceNumber;
|
---|
119 | CARD32 length;
|
---|
120 | CARD32 context_len;
|
---|
121 | CARD32 pad2;
|
---|
122 | CARD32 pad3;
|
---|
123 | CARD32 pad4;
|
---|
124 | CARD32 pad5;
|
---|
125 | CARD32 pad6;
|
---|
126 | } SELinuxGetContextReply;
|
---|
127 |
|
---|
128 | typedef struct {
|
---|
129 | CARD8 type;
|
---|
130 | CARD8 pad1;
|
---|
131 | CARD16 sequenceNumber;
|
---|
132 | CARD32 length;
|
---|
133 | CARD32 count;
|
---|
134 | CARD32 pad2;
|
---|
135 | CARD32 pad3;
|
---|
136 | CARD32 pad4;
|
---|
137 | CARD32 pad5;
|
---|
138 | CARD32 pad6;
|
---|
139 | } SELinuxListItemsReply;
|
---|
140 |
|
---|
141 |
|
---|
142 | #ifdef _XSELINUX_NEED_FLASK
|
---|
143 | /* Private Flask definitions */
|
---|
144 | #define SECCLASS_X_DRAWABLE 1
|
---|
145 | #define SECCLASS_X_SCREEN 2
|
---|
146 | #define SECCLASS_X_GC 3
|
---|
147 | #define SECCLASS_X_FONT 4
|
---|
148 | #define SECCLASS_X_COLORMAP 5
|
---|
149 | #define SECCLASS_X_PROPERTY 6
|
---|
150 | #define SECCLASS_X_SELECTION 7
|
---|
151 | #define SECCLASS_X_CURSOR 8
|
---|
152 | #define SECCLASS_X_CLIENT 9
|
---|
153 | #define SECCLASS_X_DEVICE 10
|
---|
154 | #define SECCLASS_X_SERVER 11
|
---|
155 | #define SECCLASS_X_EXTENSION 12
|
---|
156 | #define SECCLASS_X_EVENT 13
|
---|
157 | #define SECCLASS_X_FAKEEVENT 14
|
---|
158 | #define SECCLASS_X_RESOURCE 15
|
---|
159 |
|
---|
160 | /* Mapping from DixAccess bits to Flask permissions */
|
---|
161 | static struct security_class_mapping map[] = {
|
---|
162 | { "x_drawable",
|
---|
163 | { "read", /* DixReadAccess */
|
---|
164 | "write", /* DixWriteAccess */
|
---|
165 | "destroy", /* DixDestroyAccess */
|
---|
166 | "create", /* DixCreateAccess */
|
---|
167 | "getattr", /* DixGetAttrAccess */
|
---|
168 | "setattr", /* DixSetAttrAccess */
|
---|
169 | "list_property", /* DixListPropAccess */
|
---|
170 | "get_property", /* DixGetPropAccess */
|
---|
171 | "set_property", /* DixSetPropAccess */
|
---|
172 | "", /* DixGetFocusAccess */
|
---|
173 | "", /* DixSetFocusAccess */
|
---|
174 | "list_child", /* DixListAccess */
|
---|
175 | "add_child", /* DixAddAccess */
|
---|
176 | "remove_child", /* DixRemoveAccess */
|
---|
177 | "hide", /* DixHideAccess */
|
---|
178 | "show", /* DixShowAccess */
|
---|
179 | "blend", /* DixBlendAccess */
|
---|
180 | "override", /* DixGrabAccess */
|
---|
181 | "", /* DixFreezeAccess */
|
---|
182 | "", /* DixForceAccess */
|
---|
183 | "", /* DixInstallAccess */
|
---|
184 | "", /* DixUninstallAccess */
|
---|
185 | "send", /* DixSendAccess */
|
---|
186 | "receive", /* DixReceiveAccess */
|
---|
187 | "", /* DixUseAccess */
|
---|
188 | "manage", /* DixManageAccess */
|
---|
189 | NULL }},
|
---|
190 | { "x_screen",
|
---|
191 | { "", /* DixReadAccess */
|
---|
192 | "", /* DixWriteAccess */
|
---|
193 | "", /* DixDestroyAccess */
|
---|
194 | "", /* DixCreateAccess */
|
---|
195 | "getattr", /* DixGetAttrAccess */
|
---|
196 | "setattr", /* DixSetAttrAccess */
|
---|
197 | "saver_getattr", /* DixListPropAccess */
|
---|
198 | "saver_setattr", /* DixGetPropAccess */
|
---|
199 | "", /* DixSetPropAccess */
|
---|
200 | "", /* DixGetFocusAccess */
|
---|
201 | "", /* DixSetFocusAccess */
|
---|
202 | "", /* DixListAccess */
|
---|
203 | "", /* DixAddAccess */
|
---|
204 | "", /* DixRemoveAccess */
|
---|
205 | "hide_cursor", /* DixHideAccess */
|
---|
206 | "show_cursor", /* DixShowAccess */
|
---|
207 | "saver_hide", /* DixBlendAccess */
|
---|
208 | "saver_show", /* DixGrabAccess */
|
---|
209 | NULL }},
|
---|
210 | { "x_gc",
|
---|
211 | { "", /* DixReadAccess */
|
---|
212 | "", /* DixWriteAccess */
|
---|
213 | "destroy", /* DixDestroyAccess */
|
---|
214 | "create", /* DixCreateAccess */
|
---|
215 | "getattr", /* DixGetAttrAccess */
|
---|
216 | "setattr", /* DixSetAttrAccess */
|
---|
217 | "", /* DixListPropAccess */
|
---|
218 | "", /* DixGetPropAccess */
|
---|
219 | "", /* DixSetPropAccess */
|
---|
220 | "", /* DixGetFocusAccess */
|
---|
221 | "", /* DixSetFocusAccess */
|
---|
222 | "", /* DixListAccess */
|
---|
223 | "", /* DixAddAccess */
|
---|
224 | "", /* DixRemoveAccess */
|
---|
225 | "", /* DixHideAccess */
|
---|
226 | "", /* DixShowAccess */
|
---|
227 | "", /* DixBlendAccess */
|
---|
228 | "", /* DixGrabAccess */
|
---|
229 | "", /* DixFreezeAccess */
|
---|
230 | "", /* DixForceAccess */
|
---|
231 | "", /* DixInstallAccess */
|
---|
232 | "", /* DixUninstallAccess */
|
---|
233 | "", /* DixSendAccess */
|
---|
234 | "", /* DixReceiveAccess */
|
---|
235 | "use", /* DixUseAccess */
|
---|
236 | NULL }},
|
---|
237 | { "x_font",
|
---|
238 | { "", /* DixReadAccess */
|
---|
239 | "", /* DixWriteAccess */
|
---|
240 | "destroy", /* DixDestroyAccess */
|
---|
241 | "create", /* DixCreateAccess */
|
---|
242 | "getattr", /* DixGetAttrAccess */
|
---|
243 | "", /* DixSetAttrAccess */
|
---|
244 | "", /* DixListPropAccess */
|
---|
245 | "", /* DixGetPropAccess */
|
---|
246 | "", /* DixSetPropAccess */
|
---|
247 | "", /* DixGetFocusAccess */
|
---|
248 | "", /* DixSetFocusAccess */
|
---|
249 | "", /* DixListAccess */
|
---|
250 | "add_glyph", /* DixAddAccess */
|
---|
251 | "remove_glyph", /* DixRemoveAccess */
|
---|
252 | "", /* DixHideAccess */
|
---|
253 | "", /* DixShowAccess */
|
---|
254 | "", /* DixBlendAccess */
|
---|
255 | "", /* DixGrabAccess */
|
---|
256 | "", /* DixFreezeAccess */
|
---|
257 | "", /* DixForceAccess */
|
---|
258 | "", /* DixInstallAccess */
|
---|
259 | "", /* DixUninstallAccess */
|
---|
260 | "", /* DixSendAccess */
|
---|
261 | "", /* DixReceiveAccess */
|
---|
262 | "use", /* DixUseAccess */
|
---|
263 | NULL }},
|
---|
264 | { "x_colormap",
|
---|
265 | { "read", /* DixReadAccess */
|
---|
266 | "write", /* DixWriteAccess */
|
---|
267 | "destroy", /* DixDestroyAccess */
|
---|
268 | "create", /* DixCreateAccess */
|
---|
269 | "getattr", /* DixGetAttrAccess */
|
---|
270 | "", /* DixSetAttrAccess */
|
---|
271 | "", /* DixListPropAccess */
|
---|
272 | "", /* DixGetPropAccess */
|
---|
273 | "", /* DixSetPropAccess */
|
---|
274 | "", /* DixGetFocusAccess */
|
---|
275 | "", /* DixSetFocusAccess */
|
---|
276 | "", /* DixListAccess */
|
---|
277 | "add_color", /* DixAddAccess */
|
---|
278 | "remove_color", /* DixRemoveAccess */
|
---|
279 | "", /* DixHideAccess */
|
---|
280 | "", /* DixShowAccess */
|
---|
281 | "", /* DixBlendAccess */
|
---|
282 | "", /* DixGrabAccess */
|
---|
283 | "", /* DixFreezeAccess */
|
---|
284 | "", /* DixForceAccess */
|
---|
285 | "install", /* DixInstallAccess */
|
---|
286 | "uninstall", /* DixUninstallAccess */
|
---|
287 | "", /* DixSendAccess */
|
---|
288 | "", /* DixReceiveAccess */
|
---|
289 | "use", /* DixUseAccess */
|
---|
290 | NULL }},
|
---|
291 | { "x_property",
|
---|
292 | { "read", /* DixReadAccess */
|
---|
293 | "write", /* DixWriteAccess */
|
---|
294 | "destroy", /* DixDestroyAccess */
|
---|
295 | "create", /* DixCreateAccess */
|
---|
296 | "getattr", /* DixGetAttrAccess */
|
---|
297 | "setattr", /* DixSetAttrAccess */
|
---|
298 | "", /* DixListPropAccess */
|
---|
299 | "", /* DixGetPropAccess */
|
---|
300 | "", /* DixSetPropAccess */
|
---|
301 | "", /* DixGetFocusAccess */
|
---|
302 | "", /* DixSetFocusAccess */
|
---|
303 | "", /* DixListAccess */
|
---|
304 | "", /* DixAddAccess */
|
---|
305 | "", /* DixRemoveAccess */
|
---|
306 | "", /* DixHideAccess */
|
---|
307 | "", /* DixShowAccess */
|
---|
308 | "write", /* DixBlendAccess */
|
---|
309 | NULL }},
|
---|
310 | { "x_selection",
|
---|
311 | { "read", /* DixReadAccess */
|
---|
312 | "", /* DixWriteAccess */
|
---|
313 | "", /* DixDestroyAccess */
|
---|
314 | "setattr", /* DixCreateAccess */
|
---|
315 | "getattr", /* DixGetAttrAccess */
|
---|
316 | "setattr", /* DixSetAttrAccess */
|
---|
317 | NULL }},
|
---|
318 | { "x_cursor",
|
---|
319 | { "read", /* DixReadAccess */
|
---|
320 | "write", /* DixWriteAccess */
|
---|
321 | "destroy", /* DixDestroyAccess */
|
---|
322 | "create", /* DixCreateAccess */
|
---|
323 | "getattr", /* DixGetAttrAccess */
|
---|
324 | "setattr", /* DixSetAttrAccess */
|
---|
325 | "", /* DixListPropAccess */
|
---|
326 | "", /* DixGetPropAccess */
|
---|
327 | "", /* DixSetPropAccess */
|
---|
328 | "", /* DixGetFocusAccess */
|
---|
329 | "", /* DixSetFocusAccess */
|
---|
330 | "", /* DixListAccess */
|
---|
331 | "", /* DixAddAccess */
|
---|
332 | "", /* DixRemoveAccess */
|
---|
333 | "", /* DixHideAccess */
|
---|
334 | "", /* DixShowAccess */
|
---|
335 | "", /* DixBlendAccess */
|
---|
336 | "", /* DixGrabAccess */
|
---|
337 | "", /* DixFreezeAccess */
|
---|
338 | "", /* DixForceAccess */
|
---|
339 | "", /* DixInstallAccess */
|
---|
340 | "", /* DixUninstallAccess */
|
---|
341 | "", /* DixSendAccess */
|
---|
342 | "", /* DixReceiveAccess */
|
---|
343 | "use", /* DixUseAccess */
|
---|
344 | NULL }},
|
---|
345 | { "x_client",
|
---|
346 | { "", /* DixReadAccess */
|
---|
347 | "", /* DixWriteAccess */
|
---|
348 | "destroy", /* DixDestroyAccess */
|
---|
349 | "", /* DixCreateAccess */
|
---|
350 | "getattr", /* DixGetAttrAccess */
|
---|
351 | "setattr", /* DixSetAttrAccess */
|
---|
352 | "", /* DixListPropAccess */
|
---|
353 | "", /* DixGetPropAccess */
|
---|
354 | "", /* DixSetPropAccess */
|
---|
355 | "", /* DixGetFocusAccess */
|
---|
356 | "", /* DixSetFocusAccess */
|
---|
357 | "", /* DixListAccess */
|
---|
358 | "", /* DixAddAccess */
|
---|
359 | "", /* DixRemoveAccess */
|
---|
360 | "", /* DixHideAccess */
|
---|
361 | "", /* DixShowAccess */
|
---|
362 | "", /* DixBlendAccess */
|
---|
363 | "", /* DixGrabAccess */
|
---|
364 | "", /* DixFreezeAccess */
|
---|
365 | "", /* DixForceAccess */
|
---|
366 | "", /* DixInstallAccess */
|
---|
367 | "", /* DixUninstallAccess */
|
---|
368 | "", /* DixSendAccess */
|
---|
369 | "", /* DixReceiveAccess */
|
---|
370 | "", /* DixUseAccess */
|
---|
371 | "manage", /* DixManageAccess */
|
---|
372 | NULL }},
|
---|
373 | { "x_device",
|
---|
374 | { "read", /* DixReadAccess */
|
---|
375 | "write", /* DixWriteAccess */
|
---|
376 | "destroy", /* DixDestroyAccess */
|
---|
377 | "create", /* DixCreateAccess */
|
---|
378 | "getattr", /* DixGetAttrAccess */
|
---|
379 | "setattr", /* DixSetAttrAccess */
|
---|
380 | "list_property", /* DixListPropAccess */
|
---|
381 | "get_property", /* DixGetPropAccess */
|
---|
382 | "set_property", /* DixSetPropAccess */
|
---|
383 | "getfocus", /* DixGetFocusAccess */
|
---|
384 | "setfocus", /* DixSetFocusAccess */
|
---|
385 | "", /* DixListAccess */
|
---|
386 | "add", /* DixAddAccess */
|
---|
387 | "remove", /* DixRemoveAccess */
|
---|
388 | "", /* DixHideAccess */
|
---|
389 | "", /* DixShowAccess */
|
---|
390 | "", /* DixBlendAccess */
|
---|
391 | "grab", /* DixGrabAccess */
|
---|
392 | "freeze", /* DixFreezeAccess */
|
---|
393 | "force_cursor", /* DixForceAccess */
|
---|
394 | "", /* DixInstallAccess */
|
---|
395 | "", /* DixUninstallAccess */
|
---|
396 | "", /* DixSendAccess */
|
---|
397 | "", /* DixReceiveAccess */
|
---|
398 | "use", /* DixUseAccess */
|
---|
399 | "manage", /* DixManageAccess */
|
---|
400 | "", /* DixDebugAccess */
|
---|
401 | "bell", /* DixBellAccess */
|
---|
402 | NULL }},
|
---|
403 | { "x_server",
|
---|
404 | { "record", /* DixReadAccess */
|
---|
405 | "", /* DixWriteAccess */
|
---|
406 | "", /* DixDestroyAccess */
|
---|
407 | "", /* DixCreateAccess */
|
---|
408 | "getattr", /* DixGetAttrAccess */
|
---|
409 | "setattr", /* DixSetAttrAccess */
|
---|
410 | "", /* DixListPropAccess */
|
---|
411 | "", /* DixGetPropAccess */
|
---|
412 | "", /* DixSetPropAccess */
|
---|
413 | "", /* DixGetFocusAccess */
|
---|
414 | "", /* DixSetFocusAccess */
|
---|
415 | "", /* DixListAccess */
|
---|
416 | "", /* DixAddAccess */
|
---|
417 | "", /* DixRemoveAccess */
|
---|
418 | "", /* DixHideAccess */
|
---|
419 | "", /* DixShowAccess */
|
---|
420 | "", /* DixBlendAccess */
|
---|
421 | "grab", /* DixGrabAccess */
|
---|
422 | "", /* DixFreezeAccess */
|
---|
423 | "", /* DixForceAccess */
|
---|
424 | "", /* DixInstallAccess */
|
---|
425 | "", /* DixUninstallAccess */
|
---|
426 | "", /* DixSendAccess */
|
---|
427 | "", /* DixReceiveAccess */
|
---|
428 | "", /* DixUseAccess */
|
---|
429 | "manage", /* DixManageAccess */
|
---|
430 | "debug", /* DixDebugAccess */
|
---|
431 | NULL }},
|
---|
432 | { "x_extension",
|
---|
433 | { "", /* DixReadAccess */
|
---|
434 | "", /* DixWriteAccess */
|
---|
435 | "", /* DixDestroyAccess */
|
---|
436 | "", /* DixCreateAccess */
|
---|
437 | "query", /* DixGetAttrAccess */
|
---|
438 | "", /* DixSetAttrAccess */
|
---|
439 | "", /* DixListPropAccess */
|
---|
440 | "", /* DixGetPropAccess */
|
---|
441 | "", /* DixSetPropAccess */
|
---|
442 | "", /* DixGetFocusAccess */
|
---|
443 | "", /* DixSetFocusAccess */
|
---|
444 | "", /* DixListAccess */
|
---|
445 | "", /* DixAddAccess */
|
---|
446 | "", /* DixRemoveAccess */
|
---|
447 | "", /* DixHideAccess */
|
---|
448 | "", /* DixShowAccess */
|
---|
449 | "", /* DixBlendAccess */
|
---|
450 | "", /* DixGrabAccess */
|
---|
451 | "", /* DixFreezeAccess */
|
---|
452 | "", /* DixForceAccess */
|
---|
453 | "", /* DixInstallAccess */
|
---|
454 | "", /* DixUninstallAccess */
|
---|
455 | "", /* DixSendAccess */
|
---|
456 | "", /* DixReceiveAccess */
|
---|
457 | "use", /* DixUseAccess */
|
---|
458 | NULL }},
|
---|
459 | { "x_event",
|
---|
460 | { "", /* DixReadAccess */
|
---|
461 | "", /* DixWriteAccess */
|
---|
462 | "", /* DixDestroyAccess */
|
---|
463 | "", /* DixCreateAccess */
|
---|
464 | "", /* DixGetAttrAccess */
|
---|
465 | "", /* DixSetAttrAccess */
|
---|
466 | "", /* DixListPropAccess */
|
---|
467 | "", /* DixGetPropAccess */
|
---|
468 | "", /* DixSetPropAccess */
|
---|
469 | "", /* DixGetFocusAccess */
|
---|
470 | "", /* DixSetFocusAccess */
|
---|
471 | "", /* DixListAccess */
|
---|
472 | "", /* DixAddAccess */
|
---|
473 | "", /* DixRemoveAccess */
|
---|
474 | "", /* DixHideAccess */
|
---|
475 | "", /* DixShowAccess */
|
---|
476 | "", /* DixBlendAccess */
|
---|
477 | "", /* DixGrabAccess */
|
---|
478 | "", /* DixFreezeAccess */
|
---|
479 | "", /* DixForceAccess */
|
---|
480 | "", /* DixInstallAccess */
|
---|
481 | "", /* DixUninstallAccess */
|
---|
482 | "send", /* DixSendAccess */
|
---|
483 | "receive", /* DixReceiveAccess */
|
---|
484 | NULL }},
|
---|
485 | { "x_synthetic_event",
|
---|
486 | { "", /* DixReadAccess */
|
---|
487 | "", /* DixWriteAccess */
|
---|
488 | "", /* DixDestroyAccess */
|
---|
489 | "", /* DixCreateAccess */
|
---|
490 | "", /* DixGetAttrAccess */
|
---|
491 | "", /* DixSetAttrAccess */
|
---|
492 | "", /* DixListPropAccess */
|
---|
493 | "", /* DixGetPropAccess */
|
---|
494 | "", /* DixSetPropAccess */
|
---|
495 | "", /* DixGetFocusAccess */
|
---|
496 | "", /* DixSetFocusAccess */
|
---|
497 | "", /* DixListAccess */
|
---|
498 | "", /* DixAddAccess */
|
---|
499 | "", /* DixRemoveAccess */
|
---|
500 | "", /* DixHideAccess */
|
---|
501 | "", /* DixShowAccess */
|
---|
502 | "", /* DixBlendAccess */
|
---|
503 | "", /* DixGrabAccess */
|
---|
504 | "", /* DixFreezeAccess */
|
---|
505 | "", /* DixForceAccess */
|
---|
506 | "", /* DixInstallAccess */
|
---|
507 | "", /* DixUninstallAccess */
|
---|
508 | "send", /* DixSendAccess */
|
---|
509 | "receive", /* DixReceiveAccess */
|
---|
510 | NULL }},
|
---|
511 | { "x_resource",
|
---|
512 | { "read", /* DixReadAccess */
|
---|
513 | "write", /* DixWriteAccess */
|
---|
514 | "write", /* DixDestroyAccess */
|
---|
515 | "write", /* DixCreateAccess */
|
---|
516 | "read", /* DixGetAttrAccess */
|
---|
517 | "write", /* DixSetAttrAccess */
|
---|
518 | "read", /* DixListPropAccess */
|
---|
519 | "read", /* DixGetPropAccess */
|
---|
520 | "write", /* DixSetPropAccess */
|
---|
521 | "read", /* DixGetFocusAccess */
|
---|
522 | "write", /* DixSetFocusAccess */
|
---|
523 | "read", /* DixListAccess */
|
---|
524 | "write", /* DixAddAccess */
|
---|
525 | "write", /* DixRemoveAccess */
|
---|
526 | "write", /* DixHideAccess */
|
---|
527 | "read", /* DixShowAccess */
|
---|
528 | "read", /* DixBlendAccess */
|
---|
529 | "write", /* DixGrabAccess */
|
---|
530 | "write", /* DixFreezeAccess */
|
---|
531 | "write", /* DixForceAccess */
|
---|
532 | "write", /* DixInstallAccess */
|
---|
533 | "write", /* DixUninstallAccess */
|
---|
534 | "write", /* DixSendAccess */
|
---|
535 | "read", /* DixReceiveAccess */
|
---|
536 | "read", /* DixUseAccess */
|
---|
537 | "write", /* DixManageAccess */
|
---|
538 | "read", /* DixDebugAccess */
|
---|
539 | "write", /* DixBellAccess */
|
---|
540 | NULL }},
|
---|
541 | { NULL }
|
---|
542 | };
|
---|
543 |
|
---|
544 | /* x_resource "read" bits from the list above */
|
---|
545 | #define SELinuxReadMask (DixReadAccess|DixGetAttrAccess|DixListPropAccess| \
|
---|
546 | DixGetPropAccess|DixGetFocusAccess|DixListAccess| \
|
---|
547 | DixShowAccess|DixBlendAccess|DixReceiveAccess| \
|
---|
548 | DixUseAccess|DixDebugAccess)
|
---|
549 |
|
---|
550 | #endif /* _XSELINUX_NEED_FLASK */
|
---|
551 | #endif /* _XSELINUX_H */
|
---|