From patchwork Wed Sep 11 20:22:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J. Bruce Fields" X-Patchwork-Id: 2874821 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9A8A39F476 for ; Wed, 11 Sep 2013 20:22:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5D6BE2028F for ; Wed, 11 Sep 2013 20:22:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 21C9720279 for ; Wed, 11 Sep 2013 20:22:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754245Ab3IKUWM (ORCPT ); Wed, 11 Sep 2013 16:22:12 -0400 Received: from fieldses.org ([174.143.236.118]:40470 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750839Ab3IKUWL (ORCPT ); Wed, 11 Sep 2013 16:22:11 -0400 Received: from bfields by fieldses.org with local (Exim 4.76) (envelope-from ) id 1VJqvT-0000Rd-16; Wed, 11 Sep 2013 16:22:11 -0400 Date: Wed, 11 Sep 2013 16:22:11 -0400 To: mtk.manpages@gmail.com Cc: linux-nfs@vger.kernel.org, linux-man@vger.kernel.org Subject: [PATCH] access: fix outdated NFS information Message-ID: <20130911202210.GB1462@fieldses.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) From: "J. Bruce Fields" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "J. Bruce Fields" Note that NFS versions since version 3 support an "access" call so that the client doesn't have to guess permissions or id mapping on its own. (See rfc 1813 sections 1.7 and 3.3.4.) Signed-off-by: J. Bruce Fields --- man2/access.2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/man2/access.2 b/man2/access.2 index 6df68de..3bacab1 100644 --- a/man2/access.2 +++ b/man2/access.2 @@ -209,9 +209,10 @@ Similarly, a DOS file may be found to be "executable," but the call will still fail. .PP .BR access () -may not work correctly on NFS filesystems with UID mapping enabled, +may not work correctly on NFSv2 filesystems with UID mapping enabled, because UID mapping is done on the server and hidden from the client, -which checks permissions. +which checks permissions. (NFS versions 3 and higher perform the check on +the server.) Similar problems can occur to FUSE mounts. .SH BUGS In kernel 2.4 (and earlier) there is some strangeness in the handling of