Date: Wed, 22 Dec 2004 05:54:09 GMT From: Alexander Melkov <melkov@comptek.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/75380: can not open("..") from top-level directory of UFS2 hdd mounted within UFS hdd Message-ID: <200412220554.iBM5s9pw099456@www.freebsd.org> Resent-Message-ID: <200412220600.iBM60pjQ008038@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412220554.iBM5s9pw099456>