Files
android_kernel_xiaomi_sm8450/security/selinux/ss
Ondrej Mosnacek 4f29b08e23 selinux: make nslot handling in avtab more robust
commit 442dc00f82a9727dc0c48c44f792c168f593c6df upstream.

1. Make sure all fileds are initialized in avtab_init().
2. Slightly refactor avtab_alloc() to use the above fact.
3. Use h->nslot == 0 as a sentinel in the access functions to prevent
   dereferencing h->htable when it's not allocated.

Cc: stable@vger.kernel.org
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-14 08:41:57 +02:00
..
2020-08-17 21:00:33 -04:00
2020-08-17 21:00:33 -04:00
2020-08-17 21:00:33 -04:00
2020-08-23 17:36:59 -05:00
2020-04-17 16:04:34 -04:00