aboutsummaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima_template_lib.c
diff options
context:
space:
mode:
authorPetr Vorel <pvorel@suse.cz>2018-04-24 16:30:38 +0200
committerMimi Zohar <zohar@linux.vnet.ibm.com>2018-05-17 07:49:12 -0400
commitde636769c8c7359dacccca61d6c187d864d1d3b8 (patch)
tree5990e3d3715a588b370af5bd097baf5155909d2a /security/integrity/ima/ima_template_lib.c
parentima: Reflect correct permissions for policy (diff)
downloadlinux-dev-de636769c8c7359dacccca61d6c187d864d1d3b8.tar.xz
linux-dev-de636769c8c7359dacccca61d6c187d864d1d3b8.zip
ima: Unify logging
Define pr_fmt everywhere. Signed-off-by: Petr Vorel <pvorel@suse.cz> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> (powerpc build error) Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com> Changelog: Previous pr_fmt definition was too late and caused problems in powerpc allyesconfg build.
Diffstat (limited to 'security/integrity/ima/ima_template_lib.c')
-rw-r--r--security/integrity/ima/ima_template_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/integrity/ima/ima_template_lib.c b/security/integrity/ima/ima_template_lib.c
index 5afaa53decc5..43752002c222 100644
--- a/security/integrity/ima/ima_template_lib.c
+++ b/security/integrity/ima/ima_template_lib.c
@@ -13,6 +13,8 @@
* Library of supported template fields.
*/
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include "ima_template_lib.h"
static bool ima_template_hash_algo_allowed(u8 algo)