diff options
author | Paul Moore <paul@paul-moore.com> | 2021-04-21 21:15:36 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-04-21 21:43:25 -0400 |
commit | e4c82eafb609c2badc56f4e11bc50fcf44b8e9eb (patch) | |
tree | 5e053f548673ac7ca9337646cead3b2c2009d1f2 /security/selinux/include/security.h | |
parent | 1fb057dcde11b355fc9acde95cee3b2caa5dafb0 (diff) | |
download | linux-e4c82eafb609c2badc56f4e11bc50fcf44b8e9eb.tar.gz linux-e4c82eafb609c2badc56f4e11bc50fcf44b8e9eb.tar.bz2 linux-e4c82eafb609c2badc56f4e11bc50fcf44b8e9eb.zip |
selinux: add proper NULL termination to the secclass_map permissions
This patch adds the missing NULL termination to the "bpf" and
"perf_event" object class permission lists.
This missing NULL termination should really only affect the tools
under scripts/selinux, with the most important being genheaders.c,
although in practice this has not been an issue on any of my dev/test
systems. If the problem were to manifest itself it would likely
result in bogus permissions added to the end of the object class;
thankfully with no access control checks using these bogus
permissions and no policies defining these permissions the impact
would likely be limited to some noise about undefined permissions
during policy load.
Cc: stable@vger.kernel.org
Fixes: ec27c3568a34 ("selinux: bpf: Add selinux check for eBPF syscall operations")
Fixes: da97e18458fb ("perf_event: Add support for LSM and SELinux checks")
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/include/security.h')
0 files changed, 0 insertions, 0 deletions