Home
last modified time | relevance | path

Searched refs:userrole (Results 1 – 22 of 22) 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/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)
/external/selinux/secilc/test/
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)
Dminimum.cil15 (userrole USER ROLE)
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.c738 struct cil_userrole *userrole = node->data; in cil_tree_print_node() local
742 if (userrole->user != NULL) { in cil_tree_print_node()
743 datum = userrole->user; in cil_tree_print_node()
745 } else if (userrole->user_str != NULL) { in cil_tree_print_node()
746 cil_log(CIL_INFO, " %s", userrole->user_str); in cil_tree_print_node()
749 if (userrole->role != NULL) { in cil_tree_print_node()
750 datum = userrole->role; in cil_tree_print_node()
752 } else if (userrole->role_str != NULL) { in cil_tree_print_node()
753 cil_log(CIL_INFO, " %s", userrole->role_str); in cil_tree_print_node()
Dcil.c1999 void cil_userrole_init(struct cil_userrole **userrole) in cil_userrole_init() argument
2001 *userrole = cil_malloc(sizeof(**userrole)); in cil_userrole_init()
2003 (*userrole)->user_str = NULL; in cil_userrole_init()
2004 (*userrole)->user = NULL; in cil_userrole_init()
2005 (*userrole)->role_str = NULL; in cil_userrole_init()
2006 (*userrole)->role = NULL; in cil_userrole_init()
Dcil_post.c1724 struct cil_userrole *userrole = NULL; in __cil_post_db_userrole_helper() local
1746 userrole = node->data; in __cil_post_db_userrole_helper()
1747 user_datum = userrole->user; in __cil_post_db_userrole_helper()
1748 role_datum = userrole->role; in __cil_post_db_userrole_helper()
1752 u_attr = userrole->user; in __cil_post_db_userrole_helper()
1767 user = userrole->user; in __cil_post_db_userrole_helper()
Dcil_write_ast.c543 struct cil_userrole *userrole = (struct cil_userrole *)node->data; in cil_write_userrole() local
544 fprintf(cil_out, "(%s %s %s)\n", CIL_KEY_USERROLE, userrole->user_str, in cil_write_userrole()
545 userrole->role_str); in cil_write_userrole()
Dcil_build_ast.h102 void cil_destroy_userrole(struct cil_userrole *userrole);
Dcil_build_ast.c1768 struct cil_userrole *userrole = NULL; in cil_gen_userrole() local
1780 cil_userrole_init(&userrole); in cil_gen_userrole()
1782 userrole->user_str = parse_current->next->data; in cil_gen_userrole()
1783 userrole->role_str = parse_current->next->next->data; in cil_gen_userrole()
1785 ast_node->data = userrole; in cil_gen_userrole()
1792 cil_destroy_userrole(userrole); in cil_gen_userrole()
1796 void cil_destroy_userrole(struct cil_userrole *userrole) in cil_destroy_userrole() argument
1798 if (userrole == NULL) { in cil_destroy_userrole()
1802 free(userrole); in cil_destroy_userrole()
Dcil_internal.h1002 void cil_userrole_init(struct cil_userrole **userrole);
Dcil_resolve_ast.c826 struct cil_userrole *userrole = current->data; in cil_resolve_userrole() local
831 rc = cil_resolve_name(current, userrole->user_str, CIL_SYM_USERS, extra_args, &user_datum); in cil_resolve_userrole()
835 userrole->user = (struct cil_user*)user_datum; in cil_resolve_userrole()
837 rc = cil_resolve_name(current, userrole->role_str, CIL_SYM_ROLES, extra_args, &role_datum); in cil_resolve_userrole()
841 userrole->role = role_datum; in cil_resolve_userrole()