Date: Sat, 3 Jun 2006 04:17:35 GMT From: "A. Skrobov" <tyomitch@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/98414: fts_read disregards permissions of mounted volume Message-ID: <200606030417.k534HZEd075766@www.freebsd.org> Resent-Message-ID: <200606030420.k534KSgU096780@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <file names omitted> -rw-r--r-- 1 root wheel 4439671513 Mar 18 01:52 <file names omitted> -rw-r--r-- 1 root wheel 3755358680 May 31 19:57 <file names omitted> -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 <file names omitted> -rw-r--r-- 1 root wheel 4439671513 Mar 18 01:52 <file names omitted> -rw-r--r-- 1 root wheel 3755358680 May 31 19:57 <file names omitted> >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606030417.k534HZEd075766>