]> git.ipfire.org Git - thirdparty/linux.git/commit
selinux: fix a capabilities parsing typo in selinux_bpf_token_capable()
authorPaul Moore <paul@paul-moore.com>
Wed, 14 Jan 2026 21:00:14 +0000 (16:00 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 14 Jan 2026 21:15:09 +0000 (16:15 -0500)
commitb07b6f0c5d27fafb12ae98d889ae944d308fe9f6
tree26b0d14cd670bc97f31cd8690f8128d794d652e0
parent5473a722f782f79f96b4691400d681c01fcacc2f
selinux: fix a capabilities parsing typo in selinux_bpf_token_capable()

There was a typo, likely a cut-n-paste bug, where we were checking for
SECCLASS_CAPABILITY instead of SECCLASS_CAPABILITY2.

Fixes: 5473a722f782 ("selinux: add support for BPF token access control")
Reported-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c