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)
commitf9da5b14521cbb57ff45bd8134d3b8320638b1e6
tree6f2281c66d5f40ca938cbec75687850634379242
parent3e2a3a0830a2090e766d0d887d52c67de2a6f323
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