diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2020-07-08 13:24:45 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-07-08 20:21:43 -0400 |
commit | 237389e3015e0f4ceac7cf00c70a59746150561d (patch) | |
tree | 624f2bf3c6c63457c43775ae16c6c656b3b24ae1 /security/selinux/ss/symtab.h | |
parent | 2c3d8dfecedd7f5e24e09730a992b59b1c6f956e (diff) |
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>
Diffstat (limited to 'security/selinux/ss/symtab.h')
-rw-r--r-- | security/selinux/ss/symtab.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/selinux/ss/symtab.h b/security/selinux/ss/symtab.h index f145301b9d9f..f2614138d0cd 100644 --- a/security/selinux/ss/symtab.h +++ b/security/selinux/ss/symtab.h @@ -19,6 +19,9 @@ struct symtab { int symtab_init(struct symtab *s, unsigned int size); +int symtab_insert(struct symtab *s, char *name, void *datum); +void *symtab_search(struct symtab *s, const char *name); + #endif /* _SS_SYMTAB_H_ */ |