summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2011-08-15 10:13:18 -0400
committerMimi Zohar <zohar@linux.vnet.ibm.com>2011-09-14 15:24:50 -0400
commitfb88c2b6cbb1265a8bef60694699b37f5cd4ba76 (patch)
treef747bf1f156c5537da77528a92a4e36eb342cb58 /security
parent1d714057ef8f6348eba7b28ace6d307513e57cef (diff)
downloadlinux-stable-fb88c2b6cbb1265a8bef60694699b37f5cd4ba76.tar.gz
linux-stable-fb88c2b6cbb1265a8bef60694699b37f5cd4ba76.tar.bz2
linux-stable-fb88c2b6cbb1265a8bef60694699b37f5cd4ba76.zip
evm: fix security/security_old_init_security return code
security_inode_init_security previously returned -EOPNOTSUPP, for S_PRIVATE inodes, and relied on the callers to change it to 0. As the callers do not change the return code anymore, return 0, intead of -EOPNOTSUPP. Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Diffstat (limited to 'security')
-rw-r--r--security/security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/security.c b/security/security.c
index 9ebda054a333..c1d69875db6c 100644
--- a/security/security.c
+++ b/security/security.c
@@ -348,7 +348,7 @@ int security_inode_init_security(struct inode *inode, struct inode *dir,
int ret;
if (unlikely(IS_PRIVATE(inode)))
- return -EOPNOTSUPP;
+ return 0;
memset(new_xattrs, 0, sizeof new_xattrs);
if (!initxattrs)
@@ -381,7 +381,7 @@ int security_old_inode_init_security(struct inode *inode, struct inode *dir,
void **value, size_t *len)
{
if (unlikely(IS_PRIVATE(inode)))
- return -EOPNOTSUPP;
+ return 0;
return security_ops->inode_init_security(inode, dir, qstr, name, value,
len);
}