This source file includes following definitions.
- selabel_lookup
- selabel_open
- selabel_close
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #ifndef SELINUX_LABEL_H
20
21 #define SELINUX_LABEL_H
22
23 #include <selinux/selinux.h>
24 #include <errno.h>
25
26 #ifndef _GL_INLINE_HEADER_BEGIN
27 #error "Please include config.h first."
28 #endif
29 _GL_INLINE_HEADER_BEGIN
30 #ifndef SE_LABEL_INLINE
31 # define SE_LABEL_INLINE _GL_INLINE
32 #endif
33
34
35
36
37 #ifndef _GL_ATTRIBUTE_MAYBE_UNUSED
38 # if 0
39 # define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]]
40 # elif defined __GNUC__ || defined __clang__
41 # define _GL_ATTRIBUTE_MAYBE_UNUSED __attribute__ ((__unused__))
42 # else
43 # define _GL_ATTRIBUTE_MAYBE_UNUSED
44 # endif
45 #endif
46
47 #define SELABEL_CTX_FILE 0
48
49 struct selabel_handle;
50
51 SE_LABEL_INLINE int
52 selabel_lookup (_GL_ATTRIBUTE_MAYBE_UNUSED struct selabel_handle *hnd,
53 _GL_ATTRIBUTE_MAYBE_UNUSED char **context,
54 _GL_ATTRIBUTE_MAYBE_UNUSED char const *key,
55 _GL_ATTRIBUTE_MAYBE_UNUSED int type)
56 { errno = ENOTSUP; return -1; }
57
58 SE_LABEL_INLINE struct selabel_handle *
59 selabel_open (_GL_ATTRIBUTE_MAYBE_UNUSED int backend,
60 _GL_ATTRIBUTE_MAYBE_UNUSED struct selinux_opt *options,
61 _GL_ATTRIBUTE_MAYBE_UNUSED unsigned nopt)
62 { errno = ENOTSUP; return 0; }
63
64 SE_LABEL_INLINE void
65 selabel_close (_GL_ATTRIBUTE_MAYBE_UNUSED struct selabel_handle *hnd)
66 { errno = ENOTSUP; }
67
68 _GL_INLINE_HEADER_END
69
70 #endif