Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g5SHjNnC012987 for ; Fri, 28 Jun 2002 10:45:23 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g5SHjNfU012986 for linux-xfs-outgoing; Fri, 28 Jun 2002 10:45:23 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-linux-xfs@oss.sgi.com using -f Received: from zeus-e8.americas.sgi.com ([198.149.7.250]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g5SHjHnC012958 for ; Fri, 28 Jun 2002 10:45:18 -0700 Received: from daisy-e185.americas.sgi.com (daisy-e185.americas.sgi.com [128.162.185.214]) by zeus-e8.americas.sgi.com (SGI-SGI-8.9.3/americas-smart-nospam1.1) with ESMTP id MAA66548 for ; Fri, 28 Jun 2002 12:48:50 -0500 (CDT) Received: from stout.americas.sgi.com (stout.americas.sgi.com [128.162.187.5]) by daisy-e185.americas.sgi.com (SGI-8.9.3/SGI-server-1.7) with ESMTP id MAA00115 for ; Fri, 28 Jun 2002 12:48:50 -0500 (CDT) From: Eric Sandeen Received: by stout.americas.sgi.com (8.11.6/SGI-client-1.7) id g5SHmWh29678; Fri, 28 Jun 2002 12:48:32 -0500 Message-Id: <200206281748.g5SHmWh29678@stout.americas.sgi.com> Date: Fri, 28 Jun 2002 12:48:32 -0500 Subject: TAKE - fix root access() and non-executables X-Spam-Status: No, hits=0.9 required=5.0 tests=MISSING_HEADERS version=2.20 X-Spam-Level: Sender: owner-linux-xfs@oss.sgi.com Precedence: bulk "access -x foo" or bash [ -x foo ] was giving false positives for root; i.e. a file with no executable bits set was reporting as executable to the access() call. This change ensures that at least 1 executable bit is set before letting root execute it. Also a couple minor cosmetic cleanups in xfs_iaccess(). Date: Fri Jun 28 10:44:54 PDT 2002 Workarea: stout.americas.sgi.com:/localhome/src/sandeen/2.4.x-xfs/workarea-alwaysclean The following file(s) were checked into: bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs Modid: 2.4.x-xfs:slinx:122557a linux/fs/xfs/xfs_inode.c - 1.342 - Don't let CAP_DAC_OVERRIDE override if no execute bits are set other minor cleanup in xfs_iaccess()