1 /* Generated by ./xlat/gen.sh from ./xlat/pr_dumpable.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(SUID_DUMP_DISABLE) || (defined(HAVE_DECL_SUID_DUMP_DISABLE) && HAVE_DECL_SUID_DUMP_DISABLE) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((SUID_DUMP_DISABLE) == (0), "SUID_DUMP_DISABLE != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define SUID_DUMP_DISABLE 0 12 #endif 13 #if defined(SUID_DUMP_USER) || (defined(HAVE_DECL_SUID_DUMP_USER) && HAVE_DECL_SUID_DUMP_USER) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((SUID_DUMP_USER) == (1), "SUID_DUMP_USER != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define SUID_DUMP_USER 1 19 #endif 20 #if defined(SUID_DUMP_ROOT) || (defined(HAVE_DECL_SUID_DUMP_ROOT) && HAVE_DECL_SUID_DUMP_ROOT) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((SUID_DUMP_ROOT) == (2), "SUID_DUMP_ROOT != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define SUID_DUMP_ROOT 2 26 #endif 27 28 #ifndef XLAT_MACROS_ONLY 29 30 # ifdef IN_MPERS 31 32 # error static const struct xlat pr_dumpable in mpers mode 33 34 # else 35 36 static 37 const struct xlat pr_dumpable[] = { 38 39 XLAT(SUID_DUMP_DISABLE), 40 XLAT(SUID_DUMP_USER), 41 XLAT(SUID_DUMP_ROOT), 42 XLAT_END 43 }; 44 45 # endif /* !IN_MPERS */ 46 47 #endif /* !XLAT_MACROS_ONLY */ 48