Patch "apparmor: fix undefined reference to `aa_g_hash_policy'" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
apparmor: fix undefined reference to `aa_g_hash_policy'
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
apparmor-fix-undefined-reference-to-aa_g_hash_policy.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Nov 9 09:48:01 CET 2017
From: John Johansen <[email protected]>
Date: Mon, 16 Jan 2017 13:21:27 -0800
Subject: apparmor: fix undefined reference to `aa_g_hash_policy'
From: John Johansen <[email protected]>
[ 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'
--- security/apparmor/lsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
security/apparmor/lsm.c +1 -1
@@ -671,9 +671,9 @@ enum profile_mode aa_g_profile_mode = APmodule_param_call (mode, param_set_mode, param_get_mode, &aa_g_profile_mode,S_IRUSR |S_IWUSR ); -#ifdef CONFIG_SECURITY_APPARMOR_HASH /* whether policy verification hashing is enabled */ bool aa_g_hash_policy =IS_ENABLED (CONFIG_SECURITY_APPARMOR_HASH_DEFAULT ); +#ifdef CONFIG_SECURITY_APPARMOR_HASH module_param_named (hash_policy, aa_g_hash_policy, aabool,S_IRUSR |S_IWUSR );#endif
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/apparmor-fix-undefined-reference-to-aa_g_hash_policy.patch