Searched hist:"442 dc00f" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/security/selinux/ss/ |
H A D | avtab.c | 442dc00f Fri Apr 02 03:56:18 CDT 2021 Ondrej Mosnacek <omosnace@redhat.com> selinux: make nslot handling in avtab more robust
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>
|