Home
last modified time | relevance | path

Searched refs:k (Results 1 – 8 of 8) sorted by relevance

/security/selinux/ss/
Dhashtab.h54 int hashtab_insert(struct hashtab *h, void *k, void *d);
62 void *hashtab_search(struct hashtab *h, const void *k);
81 int (*apply)(void *k, void *d, void *args),
Davtab.h96 struct avtab_datum *avtab_search(struct avtab *h, struct avtab_key *k);
102 int (*insert)(struct avtab *a, struct avtab_key *k,
Dconditional.c271 static int cond_insertf(struct avtab *a, struct avtab_key *k, struct avtab_datum *d, void *ptr) in cond_insertf() argument
285 if (k->specified & AVTAB_TYPE) { in cond_insertf()
286 if (avtab_search(&p->te_avtab, k)) { in cond_insertf()
299 node_ptr = avtab_search_node(&p->te_cond_avtab, k); in cond_insertf()
301 if (avtab_search_node_next(node_ptr, k->specified)) { in cond_insertf()
318 if (avtab_search(&p->te_cond_avtab, k)) { in cond_insertf()
325 node_ptr = avtab_insert_nonunique(&p->te_cond_avtab, k, d); in cond_insertf()
Dservices.c119 unsigned k; in selinux_set_mapping() local
158 k = 0; in selinux_set_mapping()
159 while (p_in->perms[k]) { in selinux_set_mapping()
161 if (!*p_in->perms[k]) { in selinux_set_mapping()
162 k++; in selinux_set_mapping()
165 p_out->perms[k] = string_to_av_perm(pol, p_out->value, in selinux_set_mapping()
166 p_in->perms[k]); in selinux_set_mapping()
167 if (!p_out->perms[k]) { in selinux_set_mapping()
170 p_in->perms[k], p_in->name); in selinux_set_mapping()
176 k++; in selinux_set_mapping()
[all …]
Dpolicydb.c207 static u32 filenametr_hash(struct hashtab *h, const void *k) in filenametr_hash() argument
209 const struct filename_trans *ft = k; in filenametr_hash()
244 static u32 rangetr_hash(struct hashtab *h, const void *k) in rangetr_hash() argument
246 const struct range_trans *key = k; in rangetr_hash()
2213 int k; in ocontext_read() local
2218 for (k = 0; k < 4; k++) in ocontext_read()
2219 c->u.node6.addr[k] = nodebuf[k]; in ocontext_read()
2220 for (k = 0; k < 4; k++) in ocontext_read()
2221 c->u.node6.mask[k] = nodebuf[k+4]; in ocontext_read()
Dhashtab.c121 int (*apply)(void *k, void *d, void *args), in hashtab_map() argument
Davtab.c416 int (*insertf)(struct avtab *a, struct avtab_key *k, in avtab_read_item() argument
596 static int avtab_insertf(struct avtab *a, struct avtab_key *k, in avtab_insertf() argument
599 return avtab_insert(a, k, d); in avtab_insertf()
/security/selinux/
Dhooks.c5863 static int selinux_key_alloc(struct key *k, const struct cred *cred, in selinux_key_alloc() argument
5879 k->security = ksec; in selinux_key_alloc()
5883 static void selinux_key_free(struct key *k) in selinux_key_free() argument
5885 struct key_security_struct *ksec = k->security; in selinux_key_free()
5887 k->security = NULL; in selinux_key_free()