Home
last modified time | relevance | path

Searched refs:usrlvl (Results 1 – 5 of 5) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil.c2754 void cil_userlevel_init(struct cil_userlevel **usrlvl) in cil_userlevel_init() argument
2756 *usrlvl = cil_malloc(sizeof(**usrlvl)); in cil_userlevel_init()
2758 (*usrlvl)->user_str = NULL; in cil_userlevel_init()
2759 (*usrlvl)->level_str = NULL; in cil_userlevel_init()
2760 (*usrlvl)->level = NULL; in cil_userlevel_init()
Dcil_build_ast.c1462 struct cil_userlevel *usrlvl = NULL; in cil_gen_userlevel() local
1474 cil_userlevel_init(&usrlvl); in cil_gen_userlevel()
1476 usrlvl->user_str = parse_current->next->data; in cil_gen_userlevel()
1479 usrlvl->level_str = parse_current->next->next->data; in cil_gen_userlevel()
1481 cil_level_init(&usrlvl->level); in cil_gen_userlevel()
1483 rc = cil_fill_level(parse_current->next->next->cl_head, usrlvl->level); in cil_gen_userlevel()
1489 ast_node->data = usrlvl; in cil_gen_userlevel()
1496 cil_destroy_userlevel(usrlvl); in cil_gen_userlevel()
1500 void cil_destroy_userlevel(struct cil_userlevel *usrlvl) in cil_destroy_userlevel() argument
1502 if (usrlvl == NULL) { in cil_destroy_userlevel()
[all …]
Dcil_resolve_ast.c871 struct cil_userlevel *usrlvl = current->data; in cil_resolve_userlevel() local
878 rc = cil_resolve_name(current, usrlvl->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userlevel()
893 if (usrlvl->level_str != NULL) { in cil_resolve_userlevel()
894 rc = cil_resolve_name(current, usrlvl->level_str, CIL_SYM_LEVELS, extra_args, &lvl_datum); in cil_resolve_userlevel()
898 usrlvl->level = (struct cil_level*)lvl_datum; in cil_resolve_userlevel()
899 user->dftlevel = usrlvl->level; in cil_resolve_userlevel()
908 } else if (usrlvl->level != NULL) { in cil_resolve_userlevel()
909 rc = cil_resolve_level(current, usrlvl->level, extra_args); in cil_resolve_userlevel()
913 user->dftlevel = usrlvl->level; in cil_resolve_userlevel()
Dcil_build_ast.h90 void cil_destroy_userlevel(struct cil_userlevel *usrlvl);
Dcil_internal.h1067 void cil_userlevel_init(struct cil_userlevel **usrlvl);