commit | 442dc00f82a9727dc0c48c44f792c168f593c6df | [log] [tgz] |
---|---|---|
author | Ondrej Mosnacek <omosnace@redhat.com> | Fri Apr 02 10:56:18 2021 +0200 |
committer | Paul Moore <paul@paul-moore.com> | Fri Apr 02 11:46:37 2021 -0400 |
tree | 056a44fd675c1b4f0032a2566bf7968d3585af3e | |
parent | ee5de60a08b7d8d255722662da461ea159c15538 [diff] |
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>