Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/src/
Dcil_tree.c764 struct cil_userlevel *usrlvl = node->data; in cil_tree_print_node() local
767 if (usrlvl->user_str != NULL) { in cil_tree_print_node()
768 cil_log(CIL_INFO, " %s", usrlvl->user_str); in cil_tree_print_node()
771 if (usrlvl->level != NULL) { in cil_tree_print_node()
773 cil_tree_print_level(usrlvl->level); in cil_tree_print_node()
775 } else if (usrlvl->level_str != NULL) { in cil_tree_print_node()
776 cil_log(CIL_INFO, " %s", usrlvl->level_str); in cil_tree_print_node()
Dcil_write_ast.c550 struct cil_userlevel *usrlvl = (struct cil_userlevel *)node->data; in cil_write_userlevel() local
555 usr = usrlvl->user_str; in cil_write_userlevel()
556 if (usrlvl->level_str != NULL) { in cil_write_userlevel()
557 lvl = strdup(usrlvl->level_str); in cil_write_userlevel()
564 rc = cil_unfill_level(usrlvl->level, &lvl); in cil_write_userlevel()
Dcil.c2660 void cil_userlevel_init(struct cil_userlevel **usrlvl) in cil_userlevel_init() argument
2662 *usrlvl = cil_malloc(sizeof(**usrlvl)); in cil_userlevel_init()
2664 (*usrlvl)->user_str = NULL; in cil_userlevel_init()
2665 (*usrlvl)->level_str = NULL; in cil_userlevel_init()
2666 (*usrlvl)->level = NULL; in cil_userlevel_init()
Dcil_build_ast.c1398 struct cil_userlevel *usrlvl = NULL; in cil_gen_userlevel() local
1410 cil_userlevel_init(&usrlvl); in cil_gen_userlevel()
1412 usrlvl->user_str = parse_current->next->data; in cil_gen_userlevel()
1415 usrlvl->level_str = parse_current->next->next->data; in cil_gen_userlevel()
1417 cil_level_init(&usrlvl->level); in cil_gen_userlevel()
1419 rc = cil_fill_level(parse_current->next->next->cl_head, usrlvl->level); in cil_gen_userlevel()
1425 ast_node->data = usrlvl; in cil_gen_userlevel()
1432 cil_destroy_userlevel(usrlvl); in cil_gen_userlevel()
1436 void cil_destroy_userlevel(struct cil_userlevel *usrlvl) in cil_destroy_userlevel() argument
1438 if (usrlvl == NULL) { in cil_destroy_userlevel()
[all …]
Dcil_resolve_ast.c847 struct cil_userlevel *usrlvl = current->data; in cil_resolve_userlevel() local
854 rc = cil_resolve_name(current, usrlvl->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userlevel()
869 if (usrlvl->level_str != NULL) { in cil_resolve_userlevel()
870 rc = cil_resolve_name(current, usrlvl->level_str, CIL_SYM_LEVELS, extra_args, &lvl_datum); in cil_resolve_userlevel()
874 usrlvl->level = (struct cil_level*)lvl_datum; in cil_resolve_userlevel()
875 user->dftlevel = usrlvl->level; in cil_resolve_userlevel()
884 } else if (usrlvl->level != NULL) { in cil_resolve_userlevel()
885 rc = cil_resolve_level(current, usrlvl->level, extra_args); in cil_resolve_userlevel()
889 user->dftlevel = usrlvl->level; in cil_resolve_userlevel()
Dcil_build_ast.h88 void cil_destroy_userlevel(struct cil_userlevel *usrlvl);
Dcil_internal.h1055 void cil_userlevel_init(struct cil_userlevel **usrlvl);