]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfs/nfs4proc.c
nfs4: allow nfsv4 acls on non-regular-files
[linux-2.6-omap-h63xx.git] / fs / nfs / nfs4proc.c
index b3d4e8e5696a4f19ea898ce580401d09512cfea2..89efbcd6fd536e5a4b6a0d1b24e98305ee88df76 100644 (file)
@@ -3617,10 +3617,6 @@ int nfs4_setxattr(struct dentry *dentry, const char *key, const void *buf,
        if (strcmp(key, XATTR_NAME_NFSV4_ACL) != 0)
                return -EOPNOTSUPP;
 
-       if (!S_ISREG(inode->i_mode) &&
-           (!S_ISDIR(inode->i_mode) || inode->i_mode & S_ISVTX))
-               return -EPERM;
-
        return nfs4_proc_set_acl(inode, buf, buflen);
 }