selinux: do not allocate hashtabs dynamically
authorOndrej Mosnacek <omosnace@redhat.com>
Tue, 28 Apr 2020 12:55:12 +0000 (14:55 +0200)
committerPaul Moore <paul@paul-moore.com>
Fri, 1 May 2020 20:34:57 +0000 (16:34 -0400)
commit03414a49ad5f3c56988c36d2070e402ffa17feaf
tree810a13efb69606650b481efaf4afec11b5abacad
parent46619b44e431d85d64a8dfcb7166d0ae098544c8
selinux: do not allocate hashtabs dynamically

It is simpler to allocate them statically in the corresponding
structure, avoiding unnecessary kmalloc() calls and pointer
dereferencing.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
[PM: manual merging required in policydb.c]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/hashtab.c
security/selinux/ss/hashtab.h
security/selinux/ss/mls.c
security/selinux/ss/policydb.c
security/selinux/ss/policydb.h
security/selinux/ss/services.c
security/selinux/ss/symtab.c
security/selinux/ss/symtab.h