Home
last modified time | relevance | path

Searched refs:user_str (Results 1 – 10 of 10) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil_internal.h461 char *user_str; member
468 char *user_str; member
474 char *user_str; member
480 char *user_str; member
487 char *user_str; member
713 char *user_str; member
Dcil_write_ast.c345 char *user_str, *role_str, *type_str; in cil_unfill_context() local
348 user_str = context->user_str; in cil_unfill_context()
363 len = strlen(user_str) + strlen(role_str) + strlen(type_str) in cil_unfill_context()
366 if (sprintf(*out_str, "(%s %s %s %s)", user_str, role_str, type_str, range_str) < 0) { in cil_unfill_context()
544 fprintf(cil_out, "(%s %s %s)\n", CIL_KEY_USERROLE, userrole->user_str, in cil_write_userrole()
555 usr = usrlvl->user_str; in cil_write_userlevel()
581 usr = usrrng->user_str; in cil_write_userrange()
Dcil_tree.c637 } else if (context->user_str != NULL) { in cil_tree_print_context()
638 cil_log(CIL_INFO, " %s", context->user_str); in cil_tree_print_context()
749 } else if (userrole->user_str != NULL) { in cil_tree_print_node()
750 cil_log(CIL_INFO, " %s", userrole->user_str); in cil_tree_print_node()
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()
786 if (userrange->user_str != NULL) { in cil_tree_print_node()
787 cil_log(CIL_INFO, " %s", userrange->user_str); in cil_tree_print_node()
Dcil_copy_ast.c437 new->user_str = orig->user_str; in cil_copy_userrole()
452 new->user_str = orig->user_str; in cil_copy_userlevel()
472 new->user_str = orig->user_str; in cil_copy_userrange()
493 new->user_str = orig->user_str; in cil_copy_userprefix()
1067 new->user_str = data->user_str; in cil_copy_fill_context()
Dcil_verify.c748 cil_log(CIL_ERR, "Role %s is invalid for user %s\n", ctx->role_str, ctx->user_str); in __cil_verify_context()
753 cil_log(CIL_ERR, "No roles given to the user %s\n", ctx->user_str); in __cil_verify_context()
786 ctx->range_str, ctx->user_str); in __cil_verify_context()
797 ctx->range_str, ctx->user_str); in __cil_verify_context()
Dcil.c1870 (*context)->user_str = NULL; in cil_context_init()
2004 (*userrole)->user_str = NULL; in cil_userrole_init()
2014 (*userprefix)->user_str = NULL; in cil_userprefix_init()
2024 (*selinuxuser)->user_str = NULL; in cil_selinuxuser_init()
2501 (*usrlvl)->user_str = NULL; in cil_userlevel_init()
2510 (*userrange)->user_str = NULL; in cil_userrange_init()
Dcil_resolve_ast.c831 rc = cil_resolve_name(current, userrole->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userrole()
858 rc = cil_resolve_name(current, usrlvl->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userlevel()
911 rc = cil_resolve_name(current, userrange->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userrange()
962 rc = cil_resolve_name(current, userprefix->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userprefix()
989 rc = cil_resolve_name(current, selinuxuser->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_selinuxuser()
1835 rc = cil_resolve_name(current, context->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_context()
Dcil_build_ast.c1412 usrlvl->user_str = parse_current->next->data; in cil_gen_userlevel()
1472 userrange->user_str = parse_current->next->data; in cil_gen_userrange()
1532 userprefix->user_str = parse_current->next->data; in cil_gen_userprefix()
1579 selinuxuser->user_str = parse_current->next->next->data; in cil_gen_selinuxuser()
1626 selinuxuser->user_str = parse_current->next->data; in cil_gen_selinuxuserdefault()
1782 userrole->user_str = parse_current->next->data; in cil_gen_userrole()
4119 context->user_str = user_node->data; in cil_fill_context()
/external/selinux/libsepol/cil/test/unit/
Dtest_cil_copy_ast.c439 CuAssertStrEquals(tc, ((struct cil_userrole *)test_ast_node->data)->user_str, test_copy->user_str); in test_cil_copy_userrole()
983 CuAssertStrEquals(tc, test_copy->packet_context->user_str, in test_cil_copy_netifcon_nested()
984 ((struct cil_netifcon *)test_ast_node->data)->packet_context->user_str); in test_cil_copy_netifcon_nested()
1019 CuAssertStrEquals(tc, ((struct cil_context *)test_copy->data)->user_str, in test_cil_copy_fill_context()
1020 ((struct cil_context *)test_ast_node->data)->user_str); in test_cil_copy_fill_context()
1055 CuAssertStrEquals(tc, ((struct cil_context *)test_copy->data)->user_str, in test_cil_copy_fill_context_anonrange()
1056 ((struct cil_context *)test_ast_node->data)->user_str); in test_cil_copy_fill_context_anonrange()
/external/selinux/libsepol/src/
Dmodule_to_cil.c3207 char *user_str = NULL; in user_extra_to_cil() local
3228 matched = tokenize(tmp, ' ', 4, &user_str, &user, &prefix_str, &prefix); in user_extra_to_cil()
3237 if (*eol != ';' || strcmp(user_str, "user") || strcmp(prefix_str, "prefix")) { in user_extra_to_cil()
3248 free(user_str); in user_extra_to_cil()
3250 user = prefix = line = user_str = prefix_str = NULL; in user_extra_to_cil()