From owner-freebsd-bugs@FreeBSD.ORG Wed Dec 22 06:00:52 2004 Return-Path: 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 04A0616A4CE for ; Wed, 22 Dec 2004 06:00:52 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC74B43D53 for ; Wed, 22 Dec 2004 06:00:51 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iBM60pnx008040 for ; Wed, 22 Dec 2004 06:00:51 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iBM60pjQ008038; Wed, 22 Dec 2004 06:00:51 GMT (envelope-from gnats) Resent-Date: Wed, 22 Dec 2004 06:00:51 GMT Resent-Message-Id: <200412220600.iBM60pjQ008038@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, Alexander Melkov Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EC2716A4CE for ; Wed, 22 Dec 2004 05:54:10 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE12D43D39 for ; Wed, 22 Dec 2004 05:54:09 +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 iBM5s9K1099457 for ; Wed, 22 Dec 2004 05:54:09 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id iBM5s9pw099456; Wed, 22 Dec 2004 05:54:09 GMT (envelope-from nobody) Message-Id: <200412220554.iBM5s9pw099456@www.freebsd.org> Date: Wed, 22 Dec 2004 05:54:09 GMT From: Alexander Melkov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: kern/75380: can not open("..") from top-level directory of UFS2 hdd mounted within UFS hdd X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Dec 2004 06:00:52 -0000 >Number: 75380 >Category: kern >Synopsis: can not open("..") from top-level directory of UFS2 hdd mounted within UFS hdd >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 22 06:00:51 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Alexander Melkov >Release: 5.3 >Organization: >Environment: FreeBSD melkov.ru 5.3-RELEASE FreeBSD 5.3-RELEASE #1: Tue Nov 9 14:59:22 MSK 2004 spamtrap@melkov.ru:/usr/obj/usr/src/sys/MELKOV i386 >Description: ufs2 hdd mounted in a directory of ufs hdd, say /CCC is my ufs hdd, /CCC/DDD is the ufs2 hdd. /CCC/DDD is owned by nobody:nobody mode 755. from within /CCC/DDD directory, 'hd ..' works for users nobody and root, yet it doesn't work for other users such as ftp (says 'hd: ..: Permission denied'). This error actually makes tools like 'find' or 'ls -R' to fail. I have 4 IDE hard disk drives on the system. 3 of them have ufs filesystem, the fourth has ufs2 filesystem. /dev/ad0s1a / /dev/ad0s1e /usr /dev/ad0s1d /var /dev/ad0s1f /home /dev/ad0s1g /usr/AAA /dev/ad1s1e /usr/AAA/BBB/CCC /dev/ad2s1e /usr/AAA/BBB/CCC/hdd3 <- hd .. works just fine here /dev/ad3s1e /usr/AAA/BBB/CCC/hdd4 <- this one is ufs2 *** kernel configuration *** diff GENERIC MELKOV 22,23c22,23 < cpu I486_CPU < cpu I586_CPU --- > #cpu I486_CPU > #cpu I586_CPU 25c25,27 < ident GENERIC --- > ident MELKOV > > options CPU_ENABLE_SSE # Just for a case. They say this is default 41a44 > options NTFS 272a276,298 > > #options IPFW2 > options IPFIREWALL #firewall > #options PFIL_HOOKS #???? > options IPFIREWALL_VERBOSE #enable logging to syslogd(8) > options IPFIREWALL_FORWARD #enable transparent proxy support > options IPFIREWALL_VERBOSE_LIMIT=10000 #limit verbosity > #options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default > options IPDIVERT #divert > options DUMMYNET > > options TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN > > options IPSEC #IP security > ## ESP makes vpnc to fail > #options IPSEC_ESP #IP security (crypto; define w/ IPSEC) > > options NETSMB #SMB/CIFS requester > options NETSMBCRYPTO #encrypted password support for SMB > options SMBFS #SMB/CIFS filesystem > options LIBICONV > options LIBMCHAIN #mbuf management library > options NMBCLUSTERS=32768 #kern.ipc.nmbclusters >How-To-Repeat: create similar configuration (mount ufs2 hdd from within ufs), set up access rights as described above, run 'hd ..' as some other user from the top of ufs2. >Fix: >Release-Note: >Audit-Trail: >Unformatted: