Home
last modified time | relevance | path

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

/external/selinux/libsepol/cil/test/integration_testing/
Dnonmls.cil13 (userrole foo_u foo_r)
76 (userrole user_u foo_r)
Dmls_policy.cil31 (userrole foo_u foo_r)
105 (userrole user_u foo_r)
/external/selinux/secilc/test/
Dminimum.cil15 (userrole USER ROLE)
Dpolicy.cil222 (userrole foo_u foo_role)
239 (userrole ua4 foo_role_a)
243 (userrole system_u system_r)
247 (userrole user_u user_r)
Dintegration.cil149 (userrole system_u system_r)
153 (userrole user_u user_r)
Doptional_test.cil16 (userrole USER ROLE)
Dneverallow.cil15 (userrole USER ROLE)
Dblock_test.cil16 (userrole USER ROLE)
Din_test.cil16 (userrole USER ROLE)
Dname_resolution_test.cil16 (userrole USER ROLE)
Dbounds.cil15 (userrole USER ROLE)
/external/selinux/libsepol/cil/src/
Dcil_tree.c641 struct cil_userrole *userrole = node->data; in cil_tree_print_node() local
645 if (userrole->user != NULL) { in cil_tree_print_node()
646 datum = userrole->user; in cil_tree_print_node()
648 } else if (userrole->user_str != NULL) { in cil_tree_print_node()
649 cil_log(CIL_INFO, " %s", userrole->user_str); in cil_tree_print_node()
652 if (userrole->role != NULL) { in cil_tree_print_node()
653 datum = userrole->role; in cil_tree_print_node()
655 } else if (userrole->role_str != NULL) { in cil_tree_print_node()
656 cil_log(CIL_INFO, " %s", userrole->role_str); in cil_tree_print_node()
Dcil.c1934 void cil_userrole_init(struct cil_userrole **userrole) in cil_userrole_init() argument
1936 *userrole = cil_malloc(sizeof(**userrole)); in cil_userrole_init()
1938 (*userrole)->user_str = NULL; in cil_userrole_init()
1939 (*userrole)->user = NULL; in cil_userrole_init()
1940 (*userrole)->role_str = NULL; in cil_userrole_init()
1941 (*userrole)->role = NULL; in cil_userrole_init()
Dcil_post.c1384 struct cil_userrole *userrole = NULL; in __cil_post_db_userrole_helper() local
1406 userrole = node->data; in __cil_post_db_userrole_helper()
1407 user_datum = userrole->user; in __cil_post_db_userrole_helper()
1408 role_datum = userrole->role; in __cil_post_db_userrole_helper()
1412 u_attr = userrole->user; in __cil_post_db_userrole_helper()
1427 user = userrole->user; in __cil_post_db_userrole_helper()
Dcil_build_ast.h102 void cil_destroy_userrole(struct cil_userrole *userrole);
Dcil_build_ast.c1744 struct cil_userrole *userrole = NULL; in cil_gen_userrole() local
1756 cil_userrole_init(&userrole); in cil_gen_userrole()
1758 userrole->user_str = parse_current->next->data; in cil_gen_userrole()
1759 userrole->role_str = parse_current->next->next->data; in cil_gen_userrole()
1761 ast_node->data = userrole; in cil_gen_userrole()
1769 cil_destroy_userrole(userrole); in cil_gen_userrole()
1773 void cil_destroy_userrole(struct cil_userrole *userrole) in cil_destroy_userrole() argument
1775 if (userrole == NULL) { in cil_destroy_userrole()
1779 free(userrole); in cil_destroy_userrole()
Dcil_internal.h955 void cil_userrole_init(struct cil_userrole **userrole);
Dcil_resolve_ast.c770 struct cil_userrole *userrole = current->data; in cil_resolve_userrole() local
775 rc = cil_resolve_name(current, userrole->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userrole()
779 userrole->user = (struct cil_user*)user_datum; in cil_resolve_userrole()
781 rc = cil_resolve_name(current, userrole->role_str, CIL_SYM_ROLES, extra_args, &role_datum); in cil_resolve_userrole()
785 userrole->role = role_datum; in cil_resolve_userrole()
/external/selinux/secilc/docs/
Dcil_user_statements.md40 userrole section in User Statements
47 (userrole user_id role_id)
58 <td align="left"><p><code>userrole</code></p></td>
59 <td align="left"><p>The <code>userrole</code> keyword.</p></td>
79 (userrole user role)
272 (userrole user role)
DREADME.md137 * [userrole](cil_user_statements.md#userrole)
Dcil_mls_labeling_statements.md571 (userrole user role)
572 (userrole user object_r)