OSDN Git Service

apparmor: fix undefined reference to `aa_g_hash_policy'
authorJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 21:21:27 +0000 (13:21 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Nov 2017 14:53:15 +0000 (15:53 +0100)
commitab71bee531fd7f760fc919a3fa8801261f91b4c8
tree3b78018216f656dca5d9a3668c581fe7210d2690
parentc944dc7aedfbff5a4fd2fd666442d8d267292ec4
apparmor: fix undefined reference to `aa_g_hash_policy'

[ Upstream commit 3ccb76c5dfe0d25c1d0168d5b726d0b43d19a485 ]

The kernel build bot turned up a bad config combination when
CONFIG_SECURITY_APPARMOR is y and CONFIG_SECURITY_APPARMOR_HASH is n,
resulting in the build error
   security/built-in.o: In function `aa_unpack':
   (.text+0x841e2): undefined reference to `aa_g_hash_policy'

Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
security/apparmor/lsm.c