diff options
author | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2011-08-11 00:22:52 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2011-08-11 03:42:41 -0400 |
commit | 5a4730ba9517cf2793175991243436a24b1db18f (patch) | |
tree | 2c9c26d4662a31c851aed525d4d032d08e54e297 /include/linux/evm.h | |
parent | e1c9b23adbe86c725738402857397d7a29f9d6ef (diff) |
evm: fix evm_inode_init_security return code
evm_inode_init_security() should return 0, when EVM is not enabled.
(Returning an error is a remnant of evm_inode_post_init_security.)
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include/linux/evm.h')
-rw-r--r-- | include/linux/evm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/evm.h b/include/linux/evm.h index 62deb6557d37..ea603c9e775d 100644 --- a/include/linux/evm.h +++ b/include/linux/evm.h | |||
@@ -85,7 +85,7 @@ static inline int evm_inode_init_security(struct inode *inode, | |||
85 | const struct xattr *xattr_array, | 85 | const struct xattr *xattr_array, |
86 | struct xattr *evm) | 86 | struct xattr *evm) |
87 | { | 87 | { |
88 | return -EOPNOTSUPP; | 88 | return 0; |
89 | } | 89 | } |
90 | 90 | ||
91 | #endif /* CONFIG_EVM_H */ | 91 | #endif /* CONFIG_EVM_H */ |