1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/secbits.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 #undef XLAT_PREV_VAL
7
8 #ifndef XLAT_MACROS_ONLY
9
10 # ifdef IN_MPERS
11
12 # error static const struct xlat secbits in mpers mode
13
14 # else
15
16 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
17 static const struct xlat_data secbits_xdata[] = {
18 XLAT(SECBIT_NOROOT),
19 #define XLAT_VAL_0 ((unsigned) (SECBIT_NOROOT))
20 #define XLAT_STR_0 STRINGIFY(SECBIT_NOROOT)
21 XLAT(SECBIT_NOROOT_LOCKED),
22 #define XLAT_VAL_1 ((unsigned) (SECBIT_NOROOT_LOCKED))
23 #define XLAT_STR_1 STRINGIFY(SECBIT_NOROOT_LOCKED)
24 XLAT(SECBIT_NO_SETUID_FIXUP),
25 #define XLAT_VAL_2 ((unsigned) (SECBIT_NO_SETUID_FIXUP))
26 #define XLAT_STR_2 STRINGIFY(SECBIT_NO_SETUID_FIXUP)
27 XLAT(SECBIT_NO_SETUID_FIXUP_LOCKED),
28 #define XLAT_VAL_3 ((unsigned) (SECBIT_NO_SETUID_FIXUP_LOCKED))
29 #define XLAT_STR_3 STRINGIFY(SECBIT_NO_SETUID_FIXUP_LOCKED)
30 XLAT(SECBIT_KEEP_CAPS),
31 #define XLAT_VAL_4 ((unsigned) (SECBIT_KEEP_CAPS))
32 #define XLAT_STR_4 STRINGIFY(SECBIT_KEEP_CAPS)
33 XLAT(SECBIT_KEEP_CAPS_LOCKED),
34 #define XLAT_VAL_5 ((unsigned) (SECBIT_KEEP_CAPS_LOCKED))
35 #define XLAT_STR_5 STRINGIFY(SECBIT_KEEP_CAPS_LOCKED)
36 XLAT(SECBIT_NO_CAP_AMBIENT_RAISE),
37 #define XLAT_VAL_6 ((unsigned) (SECBIT_NO_CAP_AMBIENT_RAISE))
38 #define XLAT_STR_6 STRINGIFY(SECBIT_NO_CAP_AMBIENT_RAISE)
39 XLAT(SECBIT_NO_CAP_AMBIENT_RAISE_LOCKED),
40 #define XLAT_VAL_7 ((unsigned) (SECBIT_NO_CAP_AMBIENT_RAISE_LOCKED))
41 #define XLAT_STR_7 STRINGIFY(SECBIT_NO_CAP_AMBIENT_RAISE_LOCKED)
42 };
43 static
44 const struct xlat secbits[1] = { {
45 .data = secbits_xdata,
46 .size = ARRAY_SIZE(secbits_xdata),
47 .type = XT_NORMAL,
48 .flags_mask = 0
49 # ifdef XLAT_VAL_0
50 | XLAT_VAL_0
51 # endif
52 # ifdef XLAT_VAL_1
53 | XLAT_VAL_1
54 # endif
55 # ifdef XLAT_VAL_2
56 | XLAT_VAL_2
57 # endif
58 # ifdef XLAT_VAL_3
59 | XLAT_VAL_3
60 # endif
61 # ifdef XLAT_VAL_4
62 | XLAT_VAL_4
63 # endif
64 # ifdef XLAT_VAL_5
65 | XLAT_VAL_5
66 # endif
67 # ifdef XLAT_VAL_6
68 | XLAT_VAL_6
69 # endif
70 # ifdef XLAT_VAL_7
71 | XLAT_VAL_7
72 # endif
73 ,
74 .flags_strsz = 0
75 # ifdef XLAT_STR_0
76 + sizeof(XLAT_STR_0)
77 # endif
78 # ifdef XLAT_STR_1
79 + sizeof(XLAT_STR_1)
80 # endif
81 # ifdef XLAT_STR_2
82 + sizeof(XLAT_STR_2)
83 # endif
84 # ifdef XLAT_STR_3
85 + sizeof(XLAT_STR_3)
86 # endif
87 # ifdef XLAT_STR_4
88 + sizeof(XLAT_STR_4)
89 # endif
90 # ifdef XLAT_STR_5
91 + sizeof(XLAT_STR_5)
92 # endif
93 # ifdef XLAT_STR_6
94 + sizeof(XLAT_STR_6)
95 # endif
96 # ifdef XLAT_STR_7
97 + sizeof(XLAT_STR_7)
98 # endif
99 ,
100 } };
101 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
102
103 # undef XLAT_STR_0
104 # undef XLAT_VAL_0
105 # undef XLAT_STR_1
106 # undef XLAT_VAL_1
107 # undef XLAT_STR_2
108 # undef XLAT_VAL_2
109 # undef XLAT_STR_3
110 # undef XLAT_VAL_3
111 # undef XLAT_STR_4
112 # undef XLAT_VAL_4
113 # undef XLAT_STR_5
114 # undef XLAT_VAL_5
115 # undef XLAT_STR_6
116 # undef XLAT_VAL_6
117 # undef XLAT_STR_7
118 # undef XLAT_VAL_7
119 # endif /* !IN_MPERS */
120
121 #endif /* !XLAT_MACROS_ONLY */