aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/evm.h2
-rw-r--r--security/integrity/evm/evm_main.c2
2 files changed, 2 insertions, 2 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 */
diff --git a/security/integrity/evm/evm_main.c b/security/integrity/evm/evm_main.c
index 8fc5b5d7ceaa..f0127e536f84 100644
--- a/security/integrity/evm/evm_main.c
+++ b/security/integrity/evm/evm_main.c
@@ -324,7 +324,7 @@ int evm_inode_init_security(struct inode *inode,
324 int rc; 324 int rc;
325 325
326 if (!evm_initialized || !evm_protected_xattr(lsm_xattr->name)) 326 if (!evm_initialized || !evm_protected_xattr(lsm_xattr->name))
327 return -EOPNOTSUPP; 327 return 0;
328 328
329 xattr_data = kzalloc(sizeof(*xattr_data), GFP_NOFS); 329 xattr_data = kzalloc(sizeof(*xattr_data), GFP_NOFS);
330 if (!xattr_data) 330 if (!xattr_data)