]> www.infradead.org Git - users/dwmw2/linux.git/commit
selinux: ignore unknown extended permissions
authorThiƩbaud Weksteen <tweek@google.com>
Thu, 5 Dec 2024 01:09:19 +0000 (12:09 +1100)
committerPaul Moore <paul@paul-moore.com>
Mon, 16 Dec 2024 02:59:03 +0000 (21:59 -0500)
commit900f83cf376bdaf798b6f5dcb2eae0c822e908b6
tree67b26c3e6176d828af0799710fb75f484fd99fc9
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
selinux: ignore unknown extended permissions

When evaluating extended permissions, ignore unknown permissions instead
of calling BUG(). This commit ensures that future permissions can be
added without interfering with older kernels.

Cc: stable@vger.kernel.org
Fixes: fa1aa143ac4a ("selinux: extended permissions for ioctls")
Signed-off-by: ThiƩbaud Weksteen <tweek@google.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/services.c