Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 66f8e2f ("selinux: sidtab reverse lookup hash table") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
- Loading branch information