diff options
author | John Johansen <john.johansen@canonical.com> | 2017-01-16 00:42:27 -0800 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2017-01-16 01:18:24 -0800 |
commit | 680cd62e910d7b7e3c1fcde6ba67c6ca770c2286 (patch) | |
tree | 76730905bf9676fefb5070d908a13085ebb32394 /security/apparmor/lsm.c | |
parent | 57e36bbd67bd1509f550311b162be78cadfe887b (diff) | |
download | lwn-680cd62e910d7b7e3c1fcde6ba67c6ca770c2286.tar.gz lwn-680cd62e910d7b7e3c1fcde6ba67c6ca770c2286.zip |
apparmor: add debug assert AA_BUG and Kconfig to control debug info
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/lsm.c')
-rw-r--r-- | security/apparmor/lsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c index 1dae66ba757b..99a6e5ec4ffe 100644 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c @@ -681,7 +681,7 @@ module_param_named(hash_policy, aa_g_hash_policy, aabool, S_IRUSR | S_IWUSR); #endif /* Debug mode */ -bool aa_g_debug; +bool aa_g_debug = IS_ENABLED(CONFIG_SECURITY_DEBUG_MESSAGES); module_param_named(debug, aa_g_debug, aabool, S_IRUSR | S_IWUSR); /* Audit mode */ |