From fe166a9f2868839a1e2f7bd950164d05e86eb154 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Mon, 11 Feb 2019 21:56:46 -0800 Subject: [PATCH] apparmor: fix missing ZLIB defines On configs where ZLIB is not already selected we are getting undefined reference to `zlib_deflateInit2' undefined reference to `zlib_deflate' undefined reference to `zlib_deflateEnd' For now just select the necessary ZLIB configs. Fixes: 876dd866c084 ("apparmor: Initial implementation of raw policy blob compression") Signed-off-by: John Johansen --- security/apparmor/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security/apparmor/Kconfig b/security/apparmor/Kconfig index 3de21f46c82af..99c35e22c1193 100644 --- a/security/apparmor/Kconfig +++ b/security/apparmor/Kconfig @@ -5,6 +5,8 @@ config SECURITY_APPARMOR select SECURITY_PATH select SECURITYFS select SECURITY_NETWORK + select ZLIB_INFLATE + select ZLIB_DEFLATE default n help This enables the AppArmor security module.