From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: [PATCH 7/8] remove nfs xattr permission checks Date: Tue, 1 Nov 2005 03:30:59 +0100 Message-ID: <20051101023059.GG23378@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from verein.lst.de ([213.95.11.210]:21162 "EHLO mail.lst.de") by vger.kernel.org with ESMTP id S932537AbVKACbF (ORCPT ); Mon, 31 Oct 2005 21:31:05 -0500 To: akpm@osdl.org, trond.myklebust@fys.uio.no Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org remove checks now in the VFS Signed-off-by: Christoph Hellwig Index: linux-2.6/fs/nfs/nfs4proc.c =================================================================== --- linux-2.6.orig/fs/nfs/nfs4proc.c 2005-10-28 19:49:55.000000000 +0200 +++ linux-2.6/fs/nfs/nfs4proc.c 2005-10-30 20:05:02.000000000 +0100 @@ -3141,10 +3141,6 @@ 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); }