From owner-freebsd-bugs@FreeBSD.ORG Sat Jun 3 04:20:29 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7381A16A422 for ; Sat, 3 Jun 2006 04:20:29 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0669143D45 for ; Sat, 3 Jun 2006 04:20:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k534KSgF096781 for ; Sat, 3 Jun 2006 04:20:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k534KSgU096780; Sat, 3 Jun 2006 04:20:28 GMT (envelope-from gnats) Resent-Date: Sat, 3 Jun 2006 04:20:28 GMT Resent-Message-Id: <200606030420.k534KSgU096780@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "A. Skrobov" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4621F16A420 for ; Sat, 3 Jun 2006 04:17:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0245A43D45 for ; Sat, 3 Jun 2006 04:17:37 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k534HaIS075984 for ; Sat, 3 Jun 2006 04:17:36 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k534HZEd075766; Sat, 3 Jun 2006 04:17:35 GMT (envelope-from nobody) Message-Id: <200606030417.k534HZEd075766@www.freebsd.org> Date: Sat, 3 Jun 2006 04:17:35 GMT From: "A. Skrobov" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: bin/98414: fts_read disregards permissions of mounted volume X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jun 2006 04:20:29 -0000 >Number: 98414 >Category: bin >Synopsis: fts_read disregards permissions of mounted volume >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jun 03 04:20:28 GMT 2006 >Closed-Date: >Last-Modified: >Originator: A. Skrobov >Release: 5.4-RELEASE >Organization: >Environment: FreeBSD tyomitch.isnet.ru 5.4-RELEASE FreeBSD 5.4-RELEASE #4: Mon Apr 10 11:28:57 YEKST 2006 tyomitch@tyomitch.isnet.ru:/usr/src/sys/i386/compile/NAT i386 >Description: fts_read seems to use the permissions of the mount-point dir, where all other functions use the permissions of the mounted volume itself. AFAICT, the permissions used by fts_read can't be displayed in any documented way, which increases the confusion. This issue is likely the cause of Problem Report "bin/33235" as well. >How-To-Repeat: -bash-2.05b$ sudo mkdir /mnt/TestPoint -bash-2.05b$ sudo chmod 000 /mnt/TestPoint -bash-2.05b$ ls -l /mnt total 2 d--------- 2 root wheel 512 Jun 3 10:01 TestPoint -bash-2.05b$ sudo mount /dev/ad2s2d /mnt/TestPoint -bash-2.05b$ ls -l /mnt total 2 drwxr-xr-x 3 root wheel 512 Jun 1 19:29 TestPoint -bash-2.05b$ ls -lR /mnt total 2 drwxr-xr-x 3 root wheel 512 Jun 1 19:29 TestPoint /mnt/TestPoint: total 0 ls: fts_read: Permission denied -bash-2.05b$ ls -lR /mnt/TestPoint total 12324160 -rw-r--r-- 1 root wheel 4418652160 May 31 17:54 -rw-r--r-- 1 root wheel 4439671513 Mar 18 01:52 -rw-r--r-- 1 root wheel 3755358680 May 31 19:57 -bash-2.05b$ sudo umount /dev/ad2s2d -bash-2.05b$ sudo chmod 777 /mnt/TestPoint -bash-2.05b$ ls -l /mnt total 2 drwxrwxrwx 2 root wheel 512 Jun 3 10:01 TestPoint -bash-2.05b$ sudo mount /dev/ad2s2d /mnt/TestPoint -bash-2.05b$ ls -l /mnt total 2 drwxr-xr-x 3 root wheel 512 Jun 1 19:29 TestPoint -bash-2.05b$ ls -lR /mnt total 2 drwxr-xr-x 3 root wheel 512 Jun 1 19:29 TestPoint /mnt/TestPoint: total 12324160 -rw-r--r-- 1 root wheel 4418652160 May 31 17:54 -rw-r--r-- 1 root wheel 4439671513 Mar 18 01:52 -rw-r--r-- 1 root wheel 3755358680 May 31 19:57 >Fix: >Release-Note: >Audit-Trail: >Unformatted: