diff options
Diffstat (limited to 'security/integrity/evm/evm_main.c')
-rw-r--r-- | security/integrity/evm/evm_main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/security/integrity/evm/evm_main.c b/security/integrity/evm/evm_main.c index 336b3ddfe63f..6e0bd933b6a9 100644 --- a/security/integrity/evm/evm_main.c +++ b/security/integrity/evm/evm_main.c | |||
@@ -14,6 +14,8 @@ | |||
14 | * evm_inode_removexattr, and evm_verifyxattr | 14 | * evm_inode_removexattr, and evm_verifyxattr |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
18 | |||
17 | #include <linux/module.h> | 19 | #include <linux/module.h> |
18 | #include <linux/crypto.h> | 20 | #include <linux/crypto.h> |
19 | #include <linux/audit.h> | 21 | #include <linux/audit.h> |
@@ -62,7 +64,7 @@ static int evm_find_protected_xattrs(struct dentry *dentry) | |||
62 | int error; | 64 | int error; |
63 | int count = 0; | 65 | int count = 0; |
64 | 66 | ||
65 | if (!inode->i_op || !inode->i_op->getxattr) | 67 | if (!inode->i_op->getxattr) |
66 | return -EOPNOTSUPP; | 68 | return -EOPNOTSUPP; |
67 | 69 | ||
68 | for (xattr = evm_config_xattrnames; *xattr != NULL; xattr++) { | 70 | for (xattr = evm_config_xattrnames; *xattr != NULL; xattr++) { |
@@ -432,7 +434,7 @@ static int __init init_evm(void) | |||
432 | 434 | ||
433 | error = evm_init_secfs(); | 435 | error = evm_init_secfs(); |
434 | if (error < 0) { | 436 | if (error < 0) { |
435 | printk(KERN_INFO "EVM: Error registering secfs\n"); | 437 | pr_info("Error registering secfs\n"); |
436 | goto err; | 438 | goto err; |
437 | } | 439 | } |
438 | 440 | ||
@@ -449,7 +451,7 @@ static int __init evm_display_config(void) | |||
449 | char **xattrname; | 451 | char **xattrname; |
450 | 452 | ||
451 | for (xattrname = evm_config_xattrnames; *xattrname != NULL; xattrname++) | 453 | for (xattrname = evm_config_xattrnames; *xattrname != NULL; xattrname++) |
452 | printk(KERN_INFO "EVM: %s\n", *xattrname); | 454 | pr_info("%s\n", *xattrname); |
453 | return 0; | 455 | return 0; |
454 | } | 456 | } |
455 | 457 | ||