Home
last modified time | relevance | path

Searched refs:role_trans (Results 1 – 6 of 6) sorted by relevance

/third_party/selinux/libsepol/src/
Dpolicydb_validate.c493 static int validate_role_transes(sepol_handle_t *handle, role_trans_t *role_trans, validate_t flavo… in validate_role_transes() argument
495 for (; role_trans; role_trans = role_trans->next) { in validate_role_transes()
496 if (validate_value(role_trans->role, &flavors[SYM_ROLES])) in validate_role_transes()
498 if (validate_value(role_trans->type, &flavors[SYM_TYPES])) in validate_role_transes()
500 if (validate_value(role_trans->tclass, &flavors[SYM_CLASSES])) in validate_role_transes()
502 if (validate_value(role_trans->new_role, &flavors[SYM_ROLES])) in validate_role_transes()
566 static int validate_role_trans_rules(sepol_handle_t *handle, role_trans_rule_t *role_trans, validat… in validate_role_trans_rules() argument
568 for (; role_trans; role_trans = role_trans->next) { in validate_role_trans_rules()
569 if (validate_role_set(&role_trans->roles, &flavors[SYM_ROLES])) in validate_role_trans_rules()
571 if (validate_type_set(&role_trans->types, &flavors[SYM_TYPES])) in validate_role_trans_rules()
[all …]
Dservices.c1329 struct role_trans *roletr = 0; in sepol_compute_sid()
Dpolicydb.c2523 tr = calloc(1, sizeof(struct role_trans)); in role_trans_read()
/third_party/selinux/libsepol/cil/src/
Dcil.c2479 void cil_roletransition_init(struct cil_roletransition **role_trans) in cil_roletransition_init() argument
2481 *role_trans = cil_malloc(sizeof(**role_trans)); in cil_roletransition_init()
2483 (*role_trans)->src_str = NULL; in cil_roletransition_init()
2484 (*role_trans)->src = NULL; in cil_roletransition_init()
2485 (*role_trans)->tgt_str = NULL; in cil_roletransition_init()
2486 (*role_trans)->tgt = NULL; in cil_roletransition_init()
2487 (*role_trans)->obj_str = NULL; in cil_roletransition_init()
2488 (*role_trans)->obj = NULL; in cil_roletransition_init()
2489 (*role_trans)->result_str = NULL; in cil_roletransition_init()
2490 (*role_trans)->result = NULL; in cil_roletransition_init()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h150 typedef struct role_trans { struct
155 struct role_trans *next; argument
/third_party/selinux/checkpolicy/
Dpolicy_define.c3108 struct role_trans *tr = NULL; in define_role_trans()
3209 tr = malloc(sizeof(struct role_trans)); in define_role_trans()
3214 memset(tr, 0, sizeof(struct role_trans)); in define_role_trans()