Home
last modified time | relevance | path

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

/security/selinux/ss/
Dhashtab.c12 struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, const void *key), in hashtab_create() argument
13 int (*keycmp)(struct hashtab *h, const void *key1, const void *key2), in hashtab_create() argument
39 int hashtab_insert(struct hashtab *h, void *key, void *datum) in hashtab_insert() argument
46 if (!h || h->nel == HASHTAB_MAX_NODES) in hashtab_insert()
49 hvalue = h->hash_value(h, key); in hashtab_insert()
51 cur = h->htable[hvalue]; in hashtab_insert()
52 while (cur && h->keycmp(h, key, cur->key) > 0) { in hashtab_insert()
57 if (cur && (h->keycmp(h, key, cur->key) == 0)) in hashtab_insert()
69 newnode->next = h->htable[hvalue]; in hashtab_insert()
70 h->htable[hvalue] = newnode; in hashtab_insert()
[all …]
Davtab.c36 avtab_insert_node(struct avtab *h, int hvalue, in avtab_insert_node() argument
63 newnode->next = h->htable[hvalue]; in avtab_insert_node()
64 h->htable[hvalue] = newnode; in avtab_insert_node()
67 h->nel++; in avtab_insert_node()
71 static int avtab_insert(struct avtab *h, struct avtab_key *key, struct avtab_datum *datum) in avtab_insert() argument
77 if (!h || !h->htable) in avtab_insert()
80 hvalue = avtab_hash(key, h->mask); in avtab_insert()
81 for (prev = NULL, cur = h->htable[hvalue]; in avtab_insert()
104 newnode = avtab_insert_node(h, hvalue, prev, cur, key, datum); in avtab_insert()
116 avtab_insert_nonunique(struct avtab *h, struct avtab_key *key, struct avtab_datum *datum) in avtab_insert_nonunique() argument
[all …]
Dhashtab.h25 u32 (*hash_value)(struct hashtab *h, const void *key);
27 int (*keycmp)(struct hashtab *h, const void *key1, const void *key2);
42 struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, const void *key),
43 int (*keycmp)(struct hashtab *h, const void *key1, const void *key2),
54 int hashtab_insert(struct hashtab *h, void *k, void *d);
62 void *hashtab_search(struct hashtab *h, const void *k);
67 void hashtab_destroy(struct hashtab *h);
80 int hashtab_map(struct hashtab *h,
85 void hashtab_stat(struct hashtab *h, struct hashtab_info *info);
Davtab.h95 struct avtab_datum *avtab_search(struct avtab *h, struct avtab_key *k);
96 void avtab_destroy(struct avtab *h);
97 void avtab_hash_eval(struct avtab *h, char *tag);
109 struct avtab_node *avtab_insert_nonunique(struct avtab *h, struct avtab_key *key,
112 struct avtab_node *avtab_search_node(struct avtab *h, struct avtab_key *key);
Dsymtab.c11 static unsigned int symhash(struct hashtab *h, const void *key) in symhash() argument
22 return val & (h->size - 1); in symhash()
25 static int symcmp(struct hashtab *h, const void *key1, const void *key2) in symcmp() argument
Dpolicydb.c207 static u32 filenametr_hash(struct hashtab *h, const void *k) in filenametr_hash() argument
219 return hash & (h->size - 1); in filenametr_hash()
222 static int filenametr_cmp(struct hashtab *h, const void *k1, const void *k2) in filenametr_cmp() argument
244 static u32 rangetr_hash(struct hashtab *h, const void *k) in rangetr_hash() argument
248 (key->target_class << 5)) & (h->size - 1); in rangetr_hash()
251 static int rangetr_cmp(struct hashtab *h, const void *k1, const void *k2) in rangetr_cmp() argument
489 static void hash_eval(struct hashtab *h, const char *hash_name) in hash_eval() argument
493 hashtab_stat(h, &info); in hash_eval()
495 "longest chain length %d\n", hash_name, h->nel, in hash_eval()
496 info.slots_used, h->size, info.max_chain_len); in hash_eval()
[all …]
Dsidtab.c240 void sidtab_hash_eval(struct sidtab *h, char *tag) in sidtab_hash_eval() argument
248 cur = h->htable[i]; in sidtab_hash_eval()
263 "chain length %d\n", tag, h->nel, slots_used, SIDTAB_SIZE, in sidtab_hash_eval()
Dsidtab.h49 void sidtab_hash_eval(struct sidtab *h, char *tag);
Dconditional.h71 int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp);
Dconditional.c221 int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp) in cond_read_bool() argument
254 rc = hashtab_insert(h, key, booldatum); in cond_read_bool()
/security/selinux/
DMakefile18 $(addprefix $(obj)/,$(selinux-y)): $(obj)/flask.h
20 quiet_cmd_flask = GEN $(obj)/flask.h $(obj)/av_permissions.h
21 cmd_flask = scripts/selinux/genheaders/genheaders $(obj)/flask.h $(obj)/av_permissions.h
23 targets += flask.h av_permissions.h
24 $(obj)/flask.h: $(src)/include/classmap.h FORCE
D.gitignore1 av_permissions.h
2 flask.h
/security/apparmor/
DMakefile10 clean-files := capability_names.h rlim_names.h
63 $(obj)/capability.o : $(obj)/capability_names.h
64 $(obj)/resource.o : $(obj)/rlim_names.h
65 $(obj)/capability_names.h : $(srctree)/include/uapi/linux/capability.h \
68 $(obj)/rlim_names.h : $(srctree)/include/uapi/asm-generic/resource.h \
D.gitignore4 capability_names.h
5 rlim_names.h
/security/tomoyo/
DMakefile29 $(obj)/builtin-policy.h: $(obj)/policy/profile.conf $(obj)/policy/exception_policy.conf $(obj)/poli…
48 $(obj)/common.o: $(obj)/builtin-policy.h
D.gitignore1 builtin-policy.h