aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/security.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/security.c b/security/security.c
index f2d8aa949323..440afe5eb54c 100644
--- a/security/security.c
+++ b/security/security.c
@@ -630,14 +630,14 @@ int security_inode_killpriv(struct dentry *dentry)
630int security_inode_getsecurity(const struct inode *inode, const char *name, void **buffer, bool alloc) 630int security_inode_getsecurity(const struct inode *inode, const char *name, void **buffer, bool alloc)
631{ 631{
632 if (unlikely(IS_PRIVATE(inode))) 632 if (unlikely(IS_PRIVATE(inode)))
633 return 0; 633 return -EOPNOTSUPP;
634 return security_ops->inode_getsecurity(inode, name, buffer, alloc); 634 return security_ops->inode_getsecurity(inode, name, buffer, alloc);
635} 635}
636 636
637int security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags) 637int security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags)
638{ 638{
639 if (unlikely(IS_PRIVATE(inode))) 639 if (unlikely(IS_PRIVATE(inode)))
640 return 0; 640 return -EOPNOTSUPP;
641 return security_ops->inode_setsecurity(inode, name, value, size, flags); 641 return security_ops->inode_setsecurity(inode, name, value, size, flags);
642} 642}
643 643