Lines Matching refs:avtab
17 * Tuned number of hash slots for avtab to reduce memory usage
23 #include "avtab.h"
35 avtab_insert_node(struct avtab *h, int hvalue,
57 static int avtab_insert(struct avtab *h, struct avtab_key *key, struct avtab_datum *datum)
94 * key/specified mask into the table, as needed by the conditional avtab.
98 avtab_insert_nonunique(struct avtab *h, struct avtab_key *key, struct avtab_datum *datum)
128 struct avtab_datum *avtab_search(struct avtab *h, struct avtab_key *key)
163 avtab_search_node(struct avtab *h, struct avtab_key *key)
222 void avtab_destroy(struct avtab *h)
245 int avtab_init(struct avtab *h)
252 int avtab_alloc(struct avtab *h, u32 nrules)
281 printk(KERN_DEBUG "SELinux: %d avtab hash slots, %d rules.\n",
286 void avtab_hash_eval(struct avtab *h, char *tag)
326 int avtab_read_item(struct avtab *a, void *fp, struct policydb *pol,
327 int (*insertf)(struct avtab *a, struct avtab_key *k,
346 printk(KERN_ERR "SELinux: avtab: truncated entry\n");
351 printk(KERN_ERR "SELinux: avtab: entry overflow\n");
357 printk(KERN_ERR "SELinux: avtab: truncated entry\n");
365 printk(KERN_ERR "SELinux: avtab: truncated source type\n");
371 printk(KERN_ERR "SELinux: avtab: truncated target type\n");
377 printk(KERN_ERR "SELinux: avtab: truncated target class\n");
385 printk(KERN_ERR "SELinux: avtab: null entry\n");
390 printk(KERN_ERR "SELinux: avtab: entry has both access vectors and types\n");
405 printk(KERN_ERR "SELinux: avtab: entry only had %d items, expected %d\n", items2, items);
413 printk(KERN_ERR "SELinux: avtab: truncated entry\n");
426 printk(KERN_ERR "SELinux: avtab: invalid type or class\n");
436 printk(KERN_ERR "SELinux: avtab: more than one specifier\n");
442 printk(KERN_ERR "SELinux: avtab: truncated entry\n");
448 printk(KERN_ERR "SELinux: avtab: invalid type\n");
454 static int avtab_insertf(struct avtab *a, struct avtab_key *k,
460 int avtab_read(struct avtab *a, void *fp, struct policydb *pol)
469 printk(KERN_ERR "SELinux: avtab: truncated table\n");
474 printk(KERN_ERR "SELinux: avtab: table is empty\n");
487 printk(KERN_ERR "SELinux: avtab: out of memory\n");
489 printk(KERN_ERR "SELinux: avtab: duplicate entry\n");