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
123 dst->role = src->role; in context_cpy()
144 c->user = c->role = c->type = 0; in context_destroy()
158 (c1->role == c2->role) && in context_cmp()
Dpolicydb.c189 struct role_datum *role; in roles_init() local
191 role = kzalloc(sizeof(*role), GFP_KERNEL); in roles_init()
192 if (!role) in roles_init()
196 role->value = ++p->p_roles.nprim; in roles_init()
197 if (role->value != OBJECT_R_VAL) in roles_init()
205 rc = hashtab_insert(p->p_roles.table, key, role); in roles_init()
212 kfree(role); in roles_init()
383 struct role_datum *role; in role_index() local
386 role = datum; in role_index()
388 if (!role->value in role_index()
[all …]
Dservices.c328 val1 = scontext->role; in constraint_expr_eval()
329 val2 = tcontext->role; in constraint_expr_eval()
430 val1 = c->role; in constraint_expr_eval()
722 scontext->role != tcontext->role) { in context_struct_compute_av()
724 if (scontext->role == ra->role && in context_struct_compute_av()
725 tcontext->role == ra->new_role) in context_struct_compute_av()
1216 *scontext_len += strlen(sym_name(&policydb, SYM_ROLES, context->role - 1)) + 1; in context_struct_to_string()
1234 sym_name(&policydb, SYM_ROLES, context->role - 1), in context_struct_to_string()
1333 struct role_datum *role; in string_to_context_struct() local
1372 role = hashtab_search(pol->p_roles.table, scontextp); in string_to_context_struct()
[all …]
Dpolicydb.h88 u32 role; /* current role */ member
107 u32 role; /* current role */ member
321 extern int policydb_role_isvalid(struct policydb *p, unsigned int role);
Dmls.c202 if (c->role == OBJECT_R_VAL) in mls_context_isvalid()