]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: Fix undefined reference to `zlib_deflate_workspacesize'
authorJohn Johansen <john.johansen@canonical.com>
Tue, 22 Feb 2022 10:09:20 +0000 (02:09 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Sat, 9 Jul 2022 22:13:59 +0000 (15:13 -0700)
commitaf1e63cd091168a09b6f04970724590ea22ad55d
tree6f2281c66d5f40ca938cbec75687850634379242
parent89acceb18809f2f1aa7d49a1170da10c36e8a42c
apparmor: Fix undefined reference to `zlib_deflate_workspacesize'

IF CONFIG_SECURITY_APPARMOR_EXPORT_BINARY is disabled, there remains
some unneed references to zlib, and can result in undefined symbol
references if ZLIB_INFLATE or ZLIB_DEFLATE are not defined.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: abfb9c0725f2 ("apparmor: make export of raw binary profile to userspace optional")
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c
security/apparmor/policy_unpack.c