Skip to content
Commit 15b590a8 authored by Paul Moore's avatar Paul Moore
Browse files

selinux: ensure the policy has been loaded before reading the sidtab stats



Check to make sure we have loaded a policy before we query the
sidtab's hash stats.  Failure to do so could result in a kernel
panic/oops due to a dereferenced NULL pointer.

Fixes: 66f8e2f0 ("selinux: sidtab reverse lookup hash table")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 030b995a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment