]> 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)
commit926facceed8bee0fe1c7529c045622ecce58e29e
tree6817cce46a05f752ad0ed5dcae4d2493f611c136
parent442a88c195865af926c5eefc1eff8f0e6a6cb469
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