Go to the documentation of this file.
24 #ifndef _SS_POLICYDB_H_
25 #define _SS_POLICYDB_H_
64 #define DEFAULT_SOURCE 1
65 #define DEFAULT_TARGET 2
70 #define DEFAULT_SOURCE_LOW 1
71 #define DEFAULT_SOURCE_HIGH 2
72 #define DEFAULT_SOURCE_LOW_HIGH 3
73 #define DEFAULT_TARGET_LOW 4
74 #define DEFAULT_TARGET_HIGH 5
75 #define DEFAULT_TARGET_LOW_HIGH 6
196 #define SYM_COMMONS 0
197 #define SYM_CLASSES 1
222 #define p_commons symtab[SYM_COMMONS]
223 #define p_classes symtab[SYM_CLASSES]
224 #define p_roles symtab[SYM_ROLES]
225 #define p_types symtab[SYM_TYPES]
226 #define p_users symtab[SYM_USERS]
227 #define p_bools symtab[SYM_BOOLS]
228 #define p_levels symtab[SYM_LEVELS]
229 #define p_cats symtab[SYM_CATS]
302 #define PERM_SYMTAB_SIZE 32
304 #define POLICYDB_CONFIG_MLS 1
307 #define REJECT_UNKNOWN 0x00000002
308 #define ALLOW_UNKNOWN 0x00000004
310 #define OBJECT_R "object_r"
311 #define OBJECT_R_VAL 1
313 #define POLICYDB_MAGIC SELINUX_MAGIC
314 #define POLICYDB_STRING "SE Linux"
339 size_t len = bytes * num;
348 static inline char *
sym_name(
struct policydb *
p,
unsigned int sym_num,
unsigned int element_nr)