Searched refs:selinuxuser (Results 1 – 11 of 11) sorted by relevance
/third_party/selinux/libsepol/cil/src/ |
D | cil_reset_ast.c | 141 static void cil_reset_selinuxuser(struct cil_selinuxuser *selinuxuser) in cil_reset_selinuxuser() argument 143 selinuxuser->user = NULL; in cil_reset_selinuxuser() 144 if (selinuxuser->range_str == NULL) { in cil_reset_selinuxuser() 145 cil_reset_levelrange(selinuxuser->range); in cil_reset_selinuxuser() 147 selinuxuser->range = NULL; in cil_reset_selinuxuser()
|
D | cil_write_ast.c | 987 struct cil_selinuxuser *selinuxuser = node->data; in cil_write_ast_node() local 988 fprintf(out, "(selinuxuser %s ", selinuxuser->name_str); in cil_write_ast_node() 989 fprintf(out, "%s ", datum_or_str(DATUM(selinuxuser->user), selinuxuser->user_str)); in cil_write_ast_node() 990 if (selinuxuser->range) in cil_write_ast_node() 991 write_range(out, selinuxuser->range, CIL_TRUE); in cil_write_ast_node() 993 fprintf(out, "%s", selinuxuser->range_str); in cil_write_ast_node() 998 struct cil_selinuxuser *selinuxuser = node->data; in cil_write_ast_node() local 1000 fprintf(out, "%s ", datum_or_str(DATUM(selinuxuser->user), selinuxuser->user_str)); in cil_write_ast_node() 1001 if (selinuxuser->range) in cil_write_ast_node() 1002 write_range(out, selinuxuser->range, CIL_TRUE); in cil_write_ast_node() [all …]
|
D | cil.c | 1676 struct cil_selinuxuser *selinuxuser = curr->data; in cil_selinuxusers_to_string() local 1677 struct cil_user *user = selinuxuser->user; in cil_selinuxusers_to_string() 1679 str_len += strlen(selinuxuser->name_str) + strlen(user->datum.fqn) + 1; in cil_selinuxusers_to_string() 1682 struct cil_levelrange *range = selinuxuser->range; in cil_selinuxusers_to_string() 1694 struct cil_selinuxuser *selinuxuser = curr->data; in cil_selinuxusers_to_string() local 1695 struct cil_user *user = selinuxuser->user; in cil_selinuxusers_to_string() 1697 buf_pos = sprintf(str_tmp, "%s:%s", selinuxuser->name_str, user->datum.fqn); in cil_selinuxusers_to_string() 1701 struct cil_levelrange *range = selinuxuser->range; in cil_selinuxusers_to_string() 2275 void cil_selinuxuser_init(struct cil_selinuxuser **selinuxuser) in cil_selinuxuser_init() argument 2277 *selinuxuser = cil_malloc(sizeof(**selinuxuser)); in cil_selinuxuser_init() [all …]
|
D | cil_build_ast.c | 1628 struct cil_selinuxuser *selinuxuser = NULL; in cil_gen_selinuxuser() local 1640 cil_selinuxuser_init(&selinuxuser); in cil_gen_selinuxuser() 1642 selinuxuser->name_str = parse_current->next->data; in cil_gen_selinuxuser() 1643 selinuxuser->user_str = parse_current->next->next->data; in cil_gen_selinuxuser() 1646 selinuxuser->range_str = parse_current->next->next->next->data; in cil_gen_selinuxuser() 1648 cil_levelrange_init(&selinuxuser->range); in cil_gen_selinuxuser() 1650 rc = cil_fill_levelrange(parse_current->next->next->next->cl_head, selinuxuser->range); in cil_gen_selinuxuser() 1656 ast_node->data = selinuxuser; in cil_gen_selinuxuser() 1662 cil_destroy_selinuxuser(selinuxuser); in cil_gen_selinuxuser() 1675 struct cil_selinuxuser *selinuxuser = NULL; in cil_gen_selinuxuserdefault() local [all …]
|
D | cil_resolve_ast.c | 1003 struct cil_selinuxuser *selinuxuser = current->data; in cil_resolve_selinuxuser() local 1009 rc = cil_resolve_name(current, selinuxuser->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_selinuxuser() 1022 selinuxuser->user = (struct cil_user*)user_datum; in cil_resolve_selinuxuser() 1024 if (selinuxuser->range_str != NULL) { in cil_resolve_selinuxuser() 1025 …rc = cil_resolve_name(current, selinuxuser->range_str, CIL_SYM_LEVELRANGES, extra_args, &lvlrange_… in cil_resolve_selinuxuser() 1029 selinuxuser->range = (struct cil_levelrange*)lvlrange_datum; in cil_resolve_selinuxuser() 1032 if (selinuxuser->range->datum.name == NULL) { in cil_resolve_selinuxuser() 1033 rc = cil_resolve_levelrange(current, selinuxuser->range, extra_args); in cil_resolve_selinuxuser() 1038 } else if (selinuxuser->range != NULL) { in cil_resolve_selinuxuser() 1039 rc = cil_resolve_levelrange(current, selinuxuser->range, extra_args); in cil_resolve_selinuxuser()
|
D | cil_build_ast.h | 98 void cil_destroy_selinuxuser(struct cil_selinuxuser *selinuxuser);
|
D | cil_internal.h | 1020 void cil_selinuxuser_init(struct cil_selinuxuser **selinuxuser);
|
D | cil_post.c | 1876 struct cil_selinuxuser *selinuxuser = node->data; in __cil_post_db_cat_helper() local 1877 rc = __evaluate_levelrange_expression(selinuxuser->range, db); in __cil_post_db_cat_helper()
|
/third_party/selinux/secilc/docs/ |
D | cil_user_statements.md | 403 selinuxuser section in User Statements 411 (selinuxuser user_name user_id userrange_id) 423 <td align="left"><p><code>selinuxuser</code></p></td> 424 <td align="left"><p>The <code>selinuxuser</code> keyword.</p></td> 448 (selinuxuser admin_1 admin low_low)
|
D | README.md | 145 * [selinuxuser](cil_user_statements.md#selinuxuser)
|
/third_party/selinux/secilc/test/ |
D | integration.cil | 135 (selinuxuser name user_u low_high)
|