Home
last modified time | relevance | path

Searched refs:role (Results 1 – 5 of 5) sorted by relevance

/security/selinux/ss/
Dcontext.h29 u32 role; member
124 dst->role = src->role; in context_cpy()
146 c->user = c->role = c->type = c->hash = 0; in context_destroy()
162 (c1->role == c2->role) && in context_cmp()
Dpolicydb.c263 struct role_datum *role; in role_destroy() local
267 role = datum; in role_destroy()
268 ebitmap_destroy(&role->dominates); in role_destroy()
269 ebitmap_destroy(&role->types); in role_destroy()
375 struct role_datum *role; in roles_init() local
377 role = kzalloc(sizeof(*role), GFP_KERNEL); in roles_init()
378 if (!role) in roles_init()
382 role->value = ++p->p_roles.nprim; in roles_init()
383 if (role->value != OBJECT_R_VAL) in roles_init()
391 rc = hashtab_insert(p->p_roles.table, key, role); in roles_init()
[all …]
Dservices.c305 val1 = scontext->role; in constraint_expr_eval()
306 val2 = tcontext->role; in constraint_expr_eval()
407 val1 = c->role; in constraint_expr_eval()
699 scontext->role != tcontext->role) { in context_struct_compute_av()
701 if (scontext->role == ra->role && in context_struct_compute_av()
702 tcontext->role == ra->new_role) in context_struct_compute_av()
1230 *scontext_len += strlen(sym_name(p, SYM_ROLES, context->role - 1)) + 1; in context_struct_to_string()
1248 sym_name(p, SYM_ROLES, context->role - 1), in context_struct_to_string()
1397 struct role_datum *role; in string_to_context_struct() local
1436 role = hashtab_search(pol->p_roles.table, scontextp); in string_to_context_struct()
[all …]
Dpolicydb.h84 u32 role; /* current role */ member
103 u32 role; /* current role */ member
318 extern int policydb_role_isvalid(struct policydb *p, unsigned int role);
Dmls.c203 if (c->role == OBJECT_R_VAL) in mls_context_isvalid()