Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
securebits.h File Reference

Go to the source code of this file.

Macros

#define issecure_mask(X)   (1 << (X))
 
#define SECUREBITS_DEFAULT   0x00000000
 
#define SECURE_NOROOT   0
 
#define SECURE_NOROOT_LOCKED   1 /* make bit-0 immutable */
 
#define SECBIT_NOROOT   (issecure_mask(SECURE_NOROOT))
 
#define SECBIT_NOROOT_LOCKED   (issecure_mask(SECURE_NOROOT_LOCKED))
 
#define SECURE_NO_SETUID_FIXUP   2
 
#define SECURE_NO_SETUID_FIXUP_LOCKED   3 /* make bit-2 immutable */
 
#define SECBIT_NO_SETUID_FIXUP   (issecure_mask(SECURE_NO_SETUID_FIXUP))
 
#define SECBIT_NO_SETUID_FIXUP_LOCKED   (issecure_mask(SECURE_NO_SETUID_FIXUP_LOCKED))
 
#define SECURE_KEEP_CAPS   4
 
#define SECURE_KEEP_CAPS_LOCKED   5 /* make bit-4 immutable */
 
#define SECBIT_KEEP_CAPS   (issecure_mask(SECURE_KEEP_CAPS))
 
#define SECBIT_KEEP_CAPS_LOCKED   (issecure_mask(SECURE_KEEP_CAPS_LOCKED))
 
#define SECURE_ALL_BITS
 
#define SECURE_ALL_LOCKS   (SECURE_ALL_BITS << 1)
 

Macro Definition Documentation

#define issecure_mask (   X)    (1 << (X))

Definition at line 8 of file securebits.h.

#define SECBIT_KEEP_CAPS   (issecure_mask(SECURE_KEEP_CAPS))

Definition at line 43 of file securebits.h.

#define SECBIT_KEEP_CAPS_LOCKED   (issecure_mask(SECURE_KEEP_CAPS_LOCKED))

Definition at line 44 of file securebits.h.

#define SECBIT_NO_SETUID_FIXUP   (issecure_mask(SECURE_NO_SETUID_FIXUP))

Definition at line 31 of file securebits.h.

#define SECBIT_NO_SETUID_FIXUP_LOCKED   (issecure_mask(SECURE_NO_SETUID_FIXUP_LOCKED))

Definition at line 32 of file securebits.h.

#define SECBIT_NOROOT   (issecure_mask(SECURE_NOROOT))

Definition at line 21 of file securebits.h.

#define SECBIT_NOROOT_LOCKED   (issecure_mask(SECURE_NOROOT_LOCKED))

Definition at line 22 of file securebits.h.

#define SECURE_ALL_BITS
Value:
issecure_mask(SECURE_NO_SETUID_FIXUP) | \
issecure_mask(SECURE_KEEP_CAPS))

Definition at line 46 of file securebits.h.

#define SECURE_ALL_LOCKS   (SECURE_ALL_BITS << 1)

Definition at line 49 of file securebits.h.

#define SECURE_KEEP_CAPS   4

Definition at line 40 of file securebits.h.

#define SECURE_KEEP_CAPS_LOCKED   5 /* make bit-4 immutable */

Definition at line 41 of file securebits.h.

#define SECURE_NO_SETUID_FIXUP   2

Definition at line 28 of file securebits.h.

#define SECURE_NO_SETUID_FIXUP_LOCKED   3 /* make bit-2 immutable */

Definition at line 29 of file securebits.h.

#define SECURE_NOROOT   0

Definition at line 18 of file securebits.h.

#define SECURE_NOROOT_LOCKED   1 /* make bit-0 immutable */

Definition at line 19 of file securebits.h.

#define SECUREBITS_DEFAULT   0x00000000

Definition at line 10 of file securebits.h.