]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: move context hashing under sidtab
authorOndrej Mosnacek <omosnace@redhat.com>
Fri, 17 Apr 2020 08:11:57 +0000 (10:11 +0200)
committerPaul Moore <paul@paul-moore.com>
Fri, 17 Apr 2020 20:04:38 +0000 (16:04 -0400)
commit2d1de9c43c7e8d8db61952fa0bf5be701e0b50a8
tree6817cce46a05f752ad0ed5dcae4d2493f611c136
parent34d80956748730d8b23fda4429666f2877f6c847
selinux: move context hashing under sidtab

Now that context hash computation no longer depends on policydb, we can
simplify things by moving the context hashing completely under sidtab.
The hash is still cached in sidtab entries, but not for the in-flight
context structures.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/context.h
security/selinux/ss/policydb.c
security/selinux/ss/services.c
security/selinux/ss/sidtab.c
security/selinux/ss/sidtab.h