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/conditional.c | |
parent | 2c3d8dfecedd7f5e24e09730a992b59b1c6f956e (diff) | |
download | linux-237389e3015e0f4ceac7cf00c70a59746150561d.tar.bz2 |
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/conditional.c')
-rw-r--r-- | security/selinux/ss/conditional.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/conditional.c b/security/selinux/ss/conditional.c index 25850c9ea6fa..e68dd2e4cac1 100644 --- a/security/selinux/ss/conditional.c +++ b/security/selinux/ss/conditional.c @@ -200,7 +200,7 @@ static int bool_isvalid(struct cond_bool_datum *b) return 1; } -int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp) +int cond_read_bool(struct policydb *p, struct symtab *s, void *fp) { char *key = NULL; struct cond_bool_datum *booldatum; @@ -235,7 +235,7 @@ int cond_read_bool(struct policydb *p, struct hashtab *h, void *fp) if (rc) goto err; key[len] = '\0'; - rc = hashtab_insert(h, key, booldatum); + rc = symtab_insert(s, key, booldatum); if (rc) goto err; |