Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp365045imm; Wed, 3 Oct 2018 18:03:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV61CUfZpaUzCB8f6hPlpQ3iQEJVKXlee907y8E6UQ3jKlO/30T9AjzDS/LoMuBvjZwuO7qta X-Received: by 2002:a62:ee06:: with SMTP id e6-v6mr4322745pfi.2.1538615022437; Wed, 03 Oct 2018 18:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538615022; cv=none; d=google.com; s=arc-20160816; b=IfD3S4847Z5Y8hGK28k5sfIOYJlJMW1HXrsJsxa2gi3wSBazFgY6s0TYDugR6aTJDP DLw53qNKD6CYKlPw77VxsTXj0VxlwgOsSDyUes15N/oUmkbb+6qgBM/o5x8zdJep3MCK fP9HDMtvp+IkzIksmydK4C8LPO6UaJyvfamIMWjJrKfXlu5ggF8IIgmQqR0elGBnbRTB l4htymFRUI4Y1Xdxozy2qXHS33w6faKekD/vn66zaNE5uXZlWli0VvcuCut/yCG0M6EU DyIqeB32BvbIKNcdC163boeIZrR8V368xk0XnfTkYRYoqUip/RvmrrqDtbv7fxzsHMgq O3kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:cc:subject:date:to:from; bh=J6Cefn6aTaRPfmYNwMIiJp9ilUwkA3ZRdnhC3z5O8Zo=; b=nUYajqUao4NqlNHstdDO8r3GFVyrzvCJHBB1uwo5iOyay3M9rTTDVPSjHBFQtVhhWa BTr2gty/CGzVrSHjMJsORm0/LgvjdFkxBQbdEVi+0pQyN+TGAM+Oh0i9VilaCY7V8umv 2aW1chu0BLS6A2iReMA4L9KLWR0dEKXJ4IT17wqZSGRLch5o7wgIUv2+3d53hX4bCPto dWaKkpfb6QYPDbrN+4WaDCuSAPbwT999Pmh4QA5cM7xa5h6udvqAGYPw1CALwIg3vy4/ vi55fBxlD9gPBZv5JHlnaKHluAhH0CFnWj4UiqleqY95LABvBWyJ4Ek610oWQ1csgRe/ tbtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l128-v6si3479517pfc.6.2018.10.03.18.03.27; Wed, 03 Oct 2018 18:03:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727322AbeJDHyE (ORCPT + 99 others); Thu, 4 Oct 2018 03:54:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:55978 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726804AbeJDHyE (ORCPT ); Thu, 4 Oct 2018 03:54:04 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 82D39AFEA; Thu, 4 Oct 2018 01:03:14 +0000 (UTC) From: NeilBrown To: "J. Bruce Fields" , Anna Schumaker , Alexander Viro , Trond Myklebust Date: Thu, 04 Oct 2018 11:02:43 +1000 Subject: [PATCH 0/3] Fix regression in NFSv3 ACL setting Cc: Jan Harkes , linux-nfs@vger.kernel.org, Miklos Szeredi , Jeff Layton , linux-kernel@vger.kernel.org, linux-afs@lists.infradead.org, David Howells , coda@cs.cmu.edu, linux-fsdevel@vger.kernel.org, Christoph Hellwig Message-ID: <153861471803.30373.6184444014227748848.stgit@noble> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 013cdf1088d7 ("nfs: use generic posix ACL infrastructure for v3 Posix ACLs") introduce a regression for NFSv3 ACL setting. An owner should be able to set an ACL, but the new code tests for ownership in a way that is not reliable for NFSv3. For NFSv3 the only reliable test is to send the request to the server and see if it works. The first patch introduces MAY_ACT_AS_OWNER and relies on the filesystem to do the appropriate ownership test. This touches several filesystems, hence the long 'Cc' list. Following two patches are small code cleanups relating to this. Thanks, NeilBrown --- NeilBrown (3): VFS: introduce MAY_ACT_AS_OWNER VFS: allow MAY_ flags to be easily extended. NFSD - Use MAY_ACT_AS_OWNER fs/afs/security.c | 10 ++++++++++ fs/attr.c | 12 +++++------- fs/coda/dir.c | 10 ++++++++++ fs/fcntl.c | 2 +- fs/fuse/dir.c | 10 ++++++++++ fs/namei.c | 9 +++++++++ fs/nfs/dir.c | 8 ++++++++ fs/nfsd/vfs.c | 11 ++++++----- fs/nfsd/vfs.h | 33 ++++++++++++++++++--------------- fs/posix_acl.c | 2 +- fs/xattr.c | 2 +- include/linux/fs.h | 10 ++++++++++ 12 files changed, 89 insertions(+), 30 deletions(-) -- Signature