1 /************************************************************
3 Author: Eamon Walsh <ewalsh@tycho.nsa.gov>
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
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.
18 ********************************************************/
24 #define SELINUX_EXTENSION_NAME "SELinux"
25 #define SELINUX_MAJOR_VERSION 1
26 #define SELINUX_MINOR_VERSION 1
27 #define SELinuxNumberEvents 0
28 #define SELinuxNumberErrors 0
30 /* Extension protocol */
31 #define X_SELinuxQueryVersion 0
32 #define X_SELinuxSetDeviceCreateContext 1
33 #define X_SELinuxGetDeviceCreateContext 2
34 #define X_SELinuxSetDeviceContext 3
35 #define X_SELinuxGetDeviceContext 4
36 #define X_SELinuxSetDrawableCreateContext 5
37 #define X_SELinuxGetDrawableCreateContext 6
38 #define X_SELinuxGetDrawableContext 7
39 #define X_SELinuxSetPropertyCreateContext 8
40 #define X_SELinuxGetPropertyCreateContext 9
41 #define X_SELinuxSetPropertyUseContext 10
42 #define X_SELinuxGetPropertyUseContext 11
43 #define X_SELinuxGetPropertyContext 12
44 #define X_SELinuxGetPropertyDataContext 13
45 #define X_SELinuxListProperties 14
46 #define X_SELinuxSetSelectionCreateContext 15
47 #define X_SELinuxGetSelectionCreateContext 16
48 #define X_SELinuxSetSelectionUseContext 17
49 #define X_SELinuxGetSelectionUseContext 18
50 #define X_SELinuxGetSelectionContext 19
51 #define X_SELinuxGetSelectionDataContext 20
52 #define X_SELinuxListSelections 21
53 #define X_SELinuxGetClientContext 22
61 } SELinuxQueryVersionReq
;
66 CARD16 sequenceNumber
;
75 } SELinuxQueryVersionReply
;
82 } SELinuxSetCreateContextReq
;
88 } SELinuxGetCreateContextReq
;
96 } SELinuxSetContextReq
;
100 CARD8 SELinuxReqType
;
103 } SELinuxGetContextReq
;
107 CARD8 SELinuxReqType
;
111 } SELinuxGetPropertyContextReq
;
116 CARD16 sequenceNumber
;
124 } SELinuxGetContextReply
;
129 CARD16 sequenceNumber
;
137 } SELinuxListItemsReply
;
139 #endif /* _XSELINUX_H */