selinux: specialize symtab insert and search functions

This encapsulates symtab a little better and will help with further
refactoring later.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
Ondrej Mosnacek
2020-07-08 13:24:45 +02:00
committed by Paul Moore
vanhempi 2c3d8dfece
commit 237389e301
7 muutettua tiedostoa jossa 69 lisäystä ja 56 poistoa

Näytä tiedosto

@@ -39,3 +39,12 @@ int symtab_init(struct symtab *s, unsigned int size)
return hashtab_init(&s->table, symhash, symcmp, size);
}
int symtab_insert(struct symtab *s, char *name, void *datum)
{
return hashtab_insert(&s->table, name, datum);
}
void *symtab_search(struct symtab *s, const char *name)
{
return hashtab_search(&s->table, name);
}