diff options
-rw-r--r-- | fs/nfs/nfs4proc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index b3d4e8e5696a..89efbcd6fd53 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -3617,10 +3617,6 @@ int nfs4_setxattr(struct dentry *dentry, const char *key, const void *buf, | |||
3617 | if (strcmp(key, XATTR_NAME_NFSV4_ACL) != 0) | 3617 | if (strcmp(key, XATTR_NAME_NFSV4_ACL) != 0) |
3618 | return -EOPNOTSUPP; | 3618 | return -EOPNOTSUPP; |
3619 | 3619 | ||
3620 | if (!S_ISREG(inode->i_mode) && | ||
3621 | (!S_ISDIR(inode->i_mode) || inode->i_mode & S_ISVTX)) | ||
3622 | return -EPERM; | ||
3623 | |||
3624 | return nfs4_proc_set_acl(inode, buf, buflen); | 3620 | return nfs4_proc_set_acl(inode, buf, buflen); |
3625 | } | 3621 | } |
3626 | 3622 | ||