]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
apparmor: use the condition in AA_BUG_FMT even with debug disabled
authorMateusz Guzik <mjguzik@gmail.com>
Mon, 27 Jan 2025 20:54:04 +0000 (21:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:26:01 +0000 (16:26 +0200)
commit91e10ec23a70432d90a62d51bca40e569d1580ae
tree622686fbec12a3352a85d85d4fc41d253f4d2238
parentda66e354be832aa7c2f774fbf77d57ae110c1a02
apparmor: use the condition in AA_BUG_FMT even with debug disabled

[ Upstream commit 67e370aa7f968f6a4f3573ed61a77b36d1b26475 ]

This follows the established practice and fixes a build failure for me:
security/apparmor/file.c: In function ‘__file_sock_perm’:
security/apparmor/file.c:544:24: error: unused variable ‘sock’ [-Werror=unused-variable]
  544 |         struct socket *sock = (struct socket *) file->private_data;
      |                        ^~~~

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/apparmor/include/lib.h