diff options
-rw-r--r-- | security/security.c | 4 |
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, | |||
348 | int ret; | 348 | int ret; |
349 | 349 | ||
350 | if (unlikely(IS_PRIVATE(inode))) | 350 | if (unlikely(IS_PRIVATE(inode))) |
351 | return -EOPNOTSUPP; | 351 | return 0; |
352 | 352 | ||
353 | memset(new_xattrs, 0, sizeof new_xattrs); | 353 | memset(new_xattrs, 0, sizeof new_xattrs); |
354 | if (!initxattrs) | 354 | if (!initxattrs) |
@@ -381,7 +381,7 @@ int security_old_inode_init_security(struct inode *inode, struct inode *dir, | |||
381 | void **value, size_t *len) | 381 | void **value, size_t *len) |
382 | { | 382 | { |
383 | if (unlikely(IS_PRIVATE(inode))) | 383 | if (unlikely(IS_PRIVATE(inode))) |
384 | return -EOPNOTSUPP; | 384 | return 0; |
385 | return security_ops->inode_init_security(inode, dir, qstr, name, value, | 385 | return security_ops->inode_init_security(inode, dir, qstr, name, value, |
386 | len); | 386 | len); |
387 | } | 387 | } |