• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Generated by ./xlat/gen.sh from ./xlat/secbits.in; do not edit. */
2 #if !(defined(SECBIT_NOROOT) || (defined(HAVE_DECL_SECBIT_NOROOT) && HAVE_DECL_SECBIT_NOROOT))
3 # define SECBIT_NOROOT (1 << 0)
4 #endif
5 #if !(defined(SECBIT_NOROOT_LOCKED) || (defined(HAVE_DECL_SECBIT_NOROOT_LOCKED) && HAVE_DECL_SECBIT_NOROOT_LOCKED))
6 # define SECBIT_NOROOT_LOCKED (1 << 1)
7 #endif
8 #if !(defined(SECBIT_NO_SETUID_FIXUP) || (defined(HAVE_DECL_SECBIT_NO_SETUID_FIXUP) && HAVE_DECL_SECBIT_NO_SETUID_FIXUP))
9 # define SECBIT_NO_SETUID_FIXUP (1 << 2)
10 #endif
11 #if !(defined(SECBIT_NO_SETUID_FIXUP_LOCKED) || (defined(HAVE_DECL_SECBIT_NO_SETUID_FIXUP_LOCKED) && HAVE_DECL_SECBIT_NO_SETUID_FIXUP_LOCKED))
12 # define SECBIT_NO_SETUID_FIXUP_LOCKED (1 << 3)
13 #endif
14 #if !(defined(SECBIT_KEEP_CAPS) || (defined(HAVE_DECL_SECBIT_KEEP_CAPS) && HAVE_DECL_SECBIT_KEEP_CAPS))
15 # define SECBIT_KEEP_CAPS (1 << 4)
16 #endif
17 #if !(defined(SECBIT_KEEP_CAPS_LOCKED) || (defined(HAVE_DECL_SECBIT_KEEP_CAPS_LOCKED) && HAVE_DECL_SECBIT_KEEP_CAPS_LOCKED))
18 # define SECBIT_KEEP_CAPS_LOCKED (1 << 5)
19 #endif
20 #if !(defined(SECBIT_NO_CAP_AMBIENT_RAISE) || (defined(HAVE_DECL_SECBIT_NO_CAP_AMBIENT_RAISE) && HAVE_DECL_SECBIT_NO_CAP_AMBIENT_RAISE))
21 # define SECBIT_NO_CAP_AMBIENT_RAISE (1 << 6)
22 #endif
23 #if !(defined(SECBIT_NO_CAP_AMBIENT_RAISE_LOCKED) || (defined(HAVE_DECL_SECBIT_NO_CAP_AMBIENT_RAISE_LOCKED) && HAVE_DECL_SECBIT_NO_CAP_AMBIENT_RAISE_LOCKED))
24 # define SECBIT_NO_CAP_AMBIENT_RAISE_LOCKED (1 << 7)
25 #endif
26 
27 #ifdef IN_MPERS
28 
29 # error static const struct xlat secbits in mpers mode
30 
31 #else
32 
33 static
34 const struct xlat secbits[] = {
35  XLAT(SECBIT_NOROOT),
36  XLAT(SECBIT_NOROOT_LOCKED),
37  XLAT(SECBIT_NO_SETUID_FIXUP),
38  XLAT(SECBIT_NO_SETUID_FIXUP_LOCKED),
39  XLAT(SECBIT_KEEP_CAPS),
40  XLAT(SECBIT_KEEP_CAPS_LOCKED),
41  XLAT(SECBIT_NO_CAP_AMBIENT_RAISE),
42  XLAT(SECBIT_NO_CAP_AMBIENT_RAISE_LOCKED),
43  XLAT_END
44 };
45 
46 #endif /* !IN_MPERS */
47