Home
last modified time | relevance | path

Searched refs:selinuxuser (Results 1 – 11 of 11) sorted by relevance

/external/selinux/libsepol/cil/src/
Dcil.c1467 struct cil_selinuxuser *selinuxuser = curr->data; in cil_selinuxusers_to_string() local
1468 struct cil_user *user = selinuxuser->user; in cil_selinuxusers_to_string()
1470 str_len += strlen(selinuxuser->name_str) + strlen(user->datum.fqn) + 1; in cil_selinuxusers_to_string()
1473 struct cil_levelrange *range = selinuxuser->range; in cil_selinuxusers_to_string()
1485 struct cil_selinuxuser *selinuxuser = curr->data; in cil_selinuxusers_to_string() local
1486 struct cil_user *user = selinuxuser->user; in cil_selinuxusers_to_string()
1488 buf_pos = sprintf(str_tmp, "%s:%s", selinuxuser->name_str, user->datum.fqn); in cil_selinuxusers_to_string()
1492 struct cil_levelrange *range = selinuxuser->range; in cil_selinuxusers_to_string()
2018 void cil_selinuxuser_init(struct cil_selinuxuser **selinuxuser) in cil_selinuxuser_init() argument
2020 *selinuxuser = cil_malloc(sizeof(**selinuxuser)); in cil_selinuxuser_init()
[all …]
Dcil_reset_ast.c130 static void cil_reset_selinuxuser(struct cil_selinuxuser *selinuxuser) in cil_reset_selinuxuser() argument
132 if (selinuxuser->range_str == NULL) { in cil_reset_selinuxuser()
133 cil_reset_levelrange(selinuxuser->range); in cil_reset_selinuxuser()
Dcil_build_ast.c1564 struct cil_selinuxuser *selinuxuser = NULL; in cil_gen_selinuxuser() local
1576 cil_selinuxuser_init(&selinuxuser); in cil_gen_selinuxuser()
1578 selinuxuser->name_str = parse_current->next->data; in cil_gen_selinuxuser()
1579 selinuxuser->user_str = parse_current->next->next->data; in cil_gen_selinuxuser()
1582 selinuxuser->range_str = parse_current->next->next->next->data; in cil_gen_selinuxuser()
1584 cil_levelrange_init(&selinuxuser->range); in cil_gen_selinuxuser()
1586 rc = cil_fill_levelrange(parse_current->next->next->next->cl_head, selinuxuser->range); in cil_gen_selinuxuser()
1592 ast_node->data = selinuxuser; in cil_gen_selinuxuser()
1598 cil_destroy_selinuxuser(selinuxuser); in cil_gen_selinuxuser()
1611 struct cil_selinuxuser *selinuxuser = NULL; in cil_gen_selinuxuserdefault() local
[all …]
Dcil_resolve_ast.c983 struct cil_selinuxuser *selinuxuser = current->data; in cil_resolve_selinuxuser() local
989 rc = cil_resolve_name(current, selinuxuser->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_selinuxuser()
1002 selinuxuser->user = (struct cil_user*)user_datum; in cil_resolve_selinuxuser()
1004 if (selinuxuser->range_str != NULL) { in cil_resolve_selinuxuser()
1005 …rc = cil_resolve_name(current, selinuxuser->range_str, CIL_SYM_LEVELRANGES, extra_args, &lvlrange_… in cil_resolve_selinuxuser()
1009 selinuxuser->range = (struct cil_levelrange*)lvlrange_datum; in cil_resolve_selinuxuser()
1012 if (selinuxuser->range->datum.name == NULL) { in cil_resolve_selinuxuser()
1013 rc = cil_resolve_levelrange(current, selinuxuser->range, extra_args); in cil_resolve_selinuxuser()
1018 } else if (selinuxuser->range != NULL) { in cil_resolve_selinuxuser()
1019 rc = cil_resolve_levelrange(current, selinuxuser->range, extra_args); in cil_resolve_selinuxuser()
Dcil_build_ast.h96 void cil_destroy_selinuxuser(struct cil_selinuxuser *selinuxuser);
Dcil_internal.h1004 void cil_selinuxuser_init(struct cil_selinuxuser **selinuxuser);
Dcil_post.c1878 struct cil_selinuxuser *selinuxuser = node->data; in __cil_post_db_cat_helper() local
1879 rc = __evaluate_levelrange_expression(selinuxuser->range, db); in __cil_post_db_cat_helper()
/external/selinux/secilc/docs/
Dcil_user_statements.md371 selinuxuser section in User Statements
378 (selinuxuser user_name user_id userrange_id)
389 <td align="left"><p><code>selinuxuser</code></p></td>
390 <td align="left"><p>The <code>selinuxuser</code> keyword.</p></td>
413 (selinuxuser admin_1 admin low_low)
DREADME.md144 * [selinuxuser](cil_user_statements.md#selinuxuser)
/external/selinux/secilc/test/
Dintegration.cil135 (selinuxuser name user_u low_high)
Dpolicy.cil205 (selinuxuser name user_u low_high)