]> git.ipfire.org Git - thirdparty/linux.git/commit
selinux: drop the BUG() in cred_has_capability()
authorPaul Moore <paul@paul-moore.com>
Wed, 14 Jan 2026 21:23:47 +0000 (16:23 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 14 Jan 2026 21:26:21 +0000 (16:26 -0500)
commitea64aa57d596c4cbe518ffd043c52ef64089708d
tree06eae605a4e7fccae6d08058bee9e999e63e7640
parentb07b6f0c5d27fafb12ae98d889ae944d308fe9f6
selinux: drop the BUG() in cred_has_capability()

With the compile time check located immediately above the
cred_has_capability() function ensuring that we will notice if the
capability set grows beyond 63 capabilities, we can safely remove
the BUG() call from the cred_has_capability().

Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c