|
@@ -630,14 +630,14 @@ int security_inode_killpriv(struct dentry *dentry)
|
|
|
int security_inode_getsecurity(const struct inode *inode, const char *name, void **buffer, bool alloc)
|
|
|
{
|
|
|
if (unlikely(IS_PRIVATE(inode)))
|
|
|
- return 0;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
return security_ops->inode_getsecurity(inode, name, buffer, alloc);
|
|
|
}
|
|
|
|
|
|
int security_inode_setsecurity(struct inode *inode, const char *name, const void *value, size_t size, int flags)
|
|
|
{
|
|
|
if (unlikely(IS_PRIVATE(inode)))
|
|
|
- return 0;
|
|
|
+ return -EOPNOTSUPP;
|
|
|
return security_ops->inode_setsecurity(inode, name, value, size, flags);
|
|
|
}
|
|
|
|