From e37b1e15470c0f3503dd22305b228dc502e2b165 Mon Sep 17 00:00:00 2001 From: James Morris Date: Thu, 14 Jan 2010 09:33:28 +1100 Subject: [PATCH] --- yaml --- r: 184900 b: refs/heads/master c: 8d9525048c74786205b99f3fcd05a839721edfb7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/security/security.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index f54a507789b2..e923f8734e24 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cd7bec6ad80188394a8ea857ff1aa3512fc2282a +refs/heads/master: 8d9525048c74786205b99f3fcd05a839721edfb7 diff --git a/trunk/security/security.c b/trunk/security/security.c index f2d8aa949323..440afe5eb54c 100644 --- a/trunk/security/security.c +++ b/trunk/security/security.c @@ -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); }