Skip to content

Commit

Permalink
apparmor: fix missing ZLIB defines
Browse files Browse the repository at this point in the history
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: 876dd86 ("apparmor: Initial implementation of raw policy blob compression")
Signed-off-by: John Johansen <john.johansen@canonical.com>
  • Loading branch information
John Johansen committed Apr 11, 2019
1 parent 6a59d92 commit fe166a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions security/apparmor/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fe166a9

Please sign in to comment.