Re: [PATCH 2/4] selinux: do not allocate hashtabs dynamically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 28, 2020 at 8:55 AM Ondrej Mosnacek <omosnace@xxxxxxxxxx> wrote:
>
> It is simpler to allocate them statically in the corresponding
> structure, avoiding unnecessary kmalloc() calls and pointer
> dereferencing.
>
> Signed-off-by: Ondrej Mosnacek <omosnace@xxxxxxxxxx>
> ---
>  security/selinux/ss/hashtab.c  |  51 ++++---------
>  security/selinux/ss/hashtab.h  |  13 ++--
>  security/selinux/ss/mls.c      |  14 ++--
>  security/selinux/ss/policydb.c | 126 ++++++++++++++++-----------------
>  security/selinux/ss/policydb.h |   6 +-
>  security/selinux/ss/services.c |  44 ++++++------
>  security/selinux/ss/symtab.c   |   5 +-
>  security/selinux/ss/symtab.h   |   2 +-
>  8 files changed, 116 insertions(+), 145 deletions(-)

Merged into selinux/next, thanks.

-- 
paul moore
www.paul-moore.com



[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux