Home
last modified time | relevance | path

Searched refs:userrange (Results 1 – 21 of 21) sorted by relevance

/third_party/selinux/secilc/docs/
Dcil_user_statements.md242 userrange section in User Statements
250 (userrange user_id levelrange_id)
262 <td align="left"><p><code>userrange</code></p></td>
263 <td align="left"><p>The <code>userrange</code> keyword.</p></td>
297 (userrange user low_high)
299 ;(userrange user (systemLow systemHigh))
300 ;(userrange user (systemLow (s0 (c0 c1))))
301 ;(userrange user ((s0) (s0 (c0 c1))))
406 …viously declared MLS [`userrange`](cil_user_statements.md#userrange). Note that the [`userrange`](…
436userrange</code> identifier that has been associated to the <code>user</code> identifier. This may…
[all …]
DREADME.md142 * [userrange](cil_user_statements.md#userrange)
Dcil_mls_labeling_statements.md612 (userrange user (systemLow systemLow))
/third_party/selinux/libsepol/cil/src/
Dcil_reset_ast.c292 static inline void cil_reset_userrange(struct cil_userrange *userrange) in cil_reset_userrange() argument
294 if (userrange->range_str == NULL) { in cil_reset_userrange()
295 cil_reset_levelrange(userrange->range); in cil_reset_userrange()
297 userrange->range = NULL; in cil_reset_userrange()
Dcil_write_ast.c965 struct cil_userrange *userrange = node->data; in cil_write_ast_node() local
966 fprintf(out, "(userrange %s ", userrange->user_str); in cil_write_ast_node()
967 if (userrange->range) in cil_write_ast_node()
968 write_range(out, userrange->range, CIL_TRUE); in cil_write_ast_node()
970 fprintf(out, "%s", userrange->range_str); in cil_write_ast_node()
Dcil.c2763 void cil_userrange_init(struct cil_userrange **userrange) in cil_userrange_init() argument
2765 *userrange = cil_malloc(sizeof(**userrange)); in cil_userrange_init()
2767 (*userrange)->user_str = NULL; in cil_userrange_init()
2768 (*userrange)->range_str = NULL; in cil_userrange_init()
2769 (*userrange)->range = NULL; in cil_userrange_init()
Dcil_build_ast.c1522 struct cil_userrange *userrange = NULL; in cil_gen_userrange() local
1534 cil_userrange_init(&userrange); in cil_gen_userrange()
1536 userrange->user_str = parse_current->next->data; in cil_gen_userrange()
1539 userrange->range_str = parse_current->next->next->data; in cil_gen_userrange()
1541 cil_levelrange_init(&userrange->range); in cil_gen_userrange()
1543 rc = cil_fill_levelrange(parse_current->next->next->cl_head, userrange->range); in cil_gen_userrange()
1549 ast_node->data = userrange; in cil_gen_userrange()
1556 cil_destroy_userrange(userrange); in cil_gen_userrange()
1560 void cil_destroy_userrange(struct cil_userrange *userrange) in cil_destroy_userrange() argument
1562 if (userrange == NULL) { in cil_destroy_userrange()
[all …]
Dcil_resolve_ast.c924 struct cil_userrange *userrange = current->data; in cil_resolve_userrange() local
931 rc = cil_resolve_name(current, userrange->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userrange()
946 if (userrange->range_str != NULL) { in cil_resolve_userrange()
947 …rc = cil_resolve_name(current, userrange->range_str, CIL_SYM_LEVELRANGES, extra_args, &range_datum… in cil_resolve_userrange()
951 userrange->range = (struct cil_levelrange*)range_datum; in cil_resolve_userrange()
952 user->range = userrange->range; in cil_resolve_userrange()
961 } else if (userrange->range != NULL) { in cil_resolve_userrange()
962 rc = cil_resolve_levelrange(current, userrange->range, extra_args); in cil_resolve_userrange()
966 user->range = userrange->range; in cil_resolve_userrange()
Dcil_build_ast.h92 void cil_destroy_userrange(struct cil_userrange *userrange);
Dcil_internal.h1068 void cil_userrange_init(struct cil_userrange **userrange);
/third_party/selinux/secilc/test/
Danonymous_arg_test.cil20 (userrange USER ((SENS)(SENS (CAT))))
74 (userrange u lr)
Dminimum.cil17 (userrange USER ((SENS)(SENS (CAT))))
Dintegration.cil151 (userrange system_u low_high)
155 (userrange user_u (low low))
Dopt-expected.cil59 (userrange us01 ((s01) (s01)))
Doptional_test.cil18 (userrange USER ((SENS)(SENS (CAT))))
Dneverallow.cil17 (userrange USER ((SENS)(SENS (CAT))))
Dopt-input.cil64 (userrange us01 ((s01) (s01)))
Dblock_test.cil18 (userrange USER ((SENS)(SENS (CAT))))
Din_test.cil18 (userrange USER ((SENS)(SENS (CAT))))
Dname_resolution_test.cil18 (userrange USER ((SENS)(SENS (CAT))))
Dbounds.cil17 (userrange USER ((SENS)(SENS (CAT))))