Home
last modified time | relevance | path

Searched refs:h (Results 1 – 17 of 17) sorted by relevance

/security/selinux/ss/
Dhashtab.c13 struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, const void *key), in hashtab_create() argument
14 int (*keycmp)(struct hashtab *h, const void *key1, const void *key2), in hashtab_create() argument
40 int hashtab_insert(struct hashtab *h, void *key, void *datum) in hashtab_insert() argument
47 if (!h || h->nel == HASHTAB_MAX_NODES) in hashtab_insert()
50 hvalue = h->hash_value(h, key); in hashtab_insert()
52 cur = h->htable[hvalue]; in hashtab_insert()
53 while (cur && h->keycmp(h, key, cur->key) > 0) { in hashtab_insert()
58 if (cur && (h->keycmp(h, key, cur->key) == 0)) in hashtab_insert()
70 newnode->next = h->htable[hvalue]; in hashtab_insert()
71 h->htable[hvalue] = newnode; in hashtab_insert()
[all …]
Davtab.c69 avtab_insert_node(struct avtab *h, int hvalue, in avtab_insert_node() argument
96 newnode->next = flex_array_get_ptr(h->htable, hvalue); in avtab_insert_node()
97 if (flex_array_put_ptr(h->htable, hvalue, newnode, in avtab_insert_node()
104 h->nel++; in avtab_insert_node()
108 static int avtab_insert(struct avtab *h, struct avtab_key *key, struct avtab_datum *datum) in avtab_insert() argument
114 if (!h || !h->htable) in avtab_insert()
117 hvalue = avtab_hash(key, h->mask); in avtab_insert()
118 for (prev = NULL, cur = flex_array_get_ptr(h->htable, hvalue); in avtab_insert()
141 newnode = avtab_insert_node(h, hvalue, prev, cur, key, datum); in avtab_insert()
153 avtab_insert_nonunique(struct avtab *h, struct avtab_key *key, struct avtab_datum *datum) in avtab_insert_nonunique() argument
[all …]
Dhashtab.h26 u32 (*hash_value)(struct hashtab *h, const void *key);
28 int (*keycmp)(struct hashtab *h, const void *key1, const void *key2);
43 struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, const void *key),
44 int (*keycmp)(struct hashtab *h, const void *key1, const void *key2),
55 int hashtab_insert(struct hashtab *h, void *k, void *d);
63 void *hashtab_search(struct hashtab *h, const void *k);
68 void hashtab_destroy(struct hashtab *h);
81 int hashtab_map(struct hashtab *h,
86 void hashtab_stat(struct hashtab *h, struct hashtab_info *info);
Davtab.h96 struct avtab_datum *avtab_search(struct avtab *h, struct avtab_key *k);
97 void avtab_destroy(struct avtab *h);
98 void avtab_hash_eval(struct avtab *h, char *tag);
110 struct avtab_node *avtab_insert_nonunique(struct avtab *h, struct avtab_key *key,
113 struct avtab_node *avtab_search_node(struct avtab *h, struct avtab_key *key);
Dsymtab.c12 static unsigned int symhash(struct hashtab *h, const void *key) in symhash() argument
23 return val & (h->size - 1); in symhash()
26 static int symcmp(struct hashtab *h, const void *key1, const void *key2) in symcmp() argument
Dpolicydb.c216 static u32 filenametr_hash(struct hashtab *h, const void *k) in filenametr_hash() argument
228 return hash & (h->size - 1); in filenametr_hash()
231 static int filenametr_cmp(struct hashtab *h, const void *k1, const void *k2) in filenametr_cmp() argument
253 static u32 rangetr_hash(struct hashtab *h, const void *k) in rangetr_hash() argument
257 (key->target_class << 5)) & (h->size - 1); in rangetr_hash()
260 static int rangetr_cmp(struct hashtab *h, const void *k1, const void *k2) in rangetr_cmp() argument
506 static void hash_eval(struct hashtab *h, const char *hash_name) in hash_eval() argument
510 hashtab_stat(h, &info); in hash_eval()
512 "longest chain length %d\n", hash_name, h->nel, in hash_eval()
513 info.slots_used, h->size, info.max_chain_len); in hash_eval()
[all …]
Dsidtab.c234 void sidtab_hash_eval(struct sidtab *h, char *tag) in sidtab_hash_eval() argument
242 cur = h->htable[i]; in sidtab_hash_eval()
257 "chain length %d\n", tag, h->nel, slots_used, SIDTAB_SIZE, in sidtab_hash_eval()
Dsidtab.h50 void sidtab_hash_eval(struct sidtab *h, char *tag);
Dconditional.h71 int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp);
Dconditional.c222 int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp) in cond_read_bool() argument
257 rc = hashtab_insert(h, key, booldatum); in cond_read_bool()
/security/selinux/
DMakefile19 $(addprefix $(obj)/,$(selinux-y)): $(obj)/flask.h
21 quiet_cmd_flask = GEN $(obj)/flask.h $(obj)/av_permissions.h
22 cmd_flask = scripts/selinux/genheaders/genheaders $(obj)/flask.h $(obj)/av_permissions.h
24 targets += flask.h av_permissions.h
25 $(obj)/flask.h: $(src)/include/classmap.h FORCE
D.gitignore1 av_permissions.h
2 flask.h
/security/apparmor/
DMakefile11 clean-files := capability_names.h rlim_names.h
64 $(obj)/capability.o : $(obj)/capability_names.h
65 $(obj)/resource.o : $(obj)/rlim_names.h
66 $(obj)/capability_names.h : $(srctree)/include/uapi/linux/capability.h \
69 $(obj)/rlim_names.h : $(srctree)/include/uapi/asm-generic/resource.h \
D.gitignore4 capability_names.h
5 rlim_names.h
/security/keys/
Ddh.c150 unsigned int h = crypto_shash_digestsize(desc->tfm); in kdf_ctr() local
164 if (zlen && h) { in kdf_ctr()
165 u8 tmpbuffer[h]; in kdf_ctr()
166 size_t chunk = min_t(size_t, zlen, h); in kdf_ctr()
176 chunk = min_t(size_t, zlen, h); in kdf_ctr()
186 if (dlen < h) { in kdf_ctr()
187 u8 tmpbuffer[h]; in kdf_ctr()
193 memzero_explicit(tmpbuffer, h); in kdf_ctr()
200 dlen -= h; in kdf_ctr()
201 dst += h; in kdf_ctr()
/security/tomoyo/
DMakefile4 targets += builtin-policy.h
13 $(obj)/builtin-policy.h: $(wildcard $(obj)/policy/*.conf $(src)/policy/*.conf.default) FORCE
16 $(obj)/common.o: $(obj)/builtin-policy.h
D.gitignore1 builtin-policy.h