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)
commit225621c9348d2a759db141024d5986d48e8c50dc
tree6817cce46a05f752ad0ed5dcae4d2493f611c136
parent50077289804c9bd4e6cfd5b3a10d4da0487f7e42
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