From owner-freebsd-hackers@FreeBSD.ORG Mon May 17 10:26:41 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 370F41065672 for ; Mon, 17 May 2010 10:26:41 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id AD4F88FC19 for ; Mon, 17 May 2010 10:26:40 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o4HAQmgi087770 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 17 May 2010 13:26:48 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o4HAQYRg020082; Mon, 17 May 2010 13:26:34 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o4HAQYkJ020081; Mon, 17 May 2010 13:26:34 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 17 May 2010 13:26:34 +0300 From: Kostik Belousov To: ticso@cicely.de Message-ID: <20100517102634.GI83316@deviant.kiev.zoral.com.ua> References: <201005151225.o4FCPkl3056460@fire.js.berklix.net> <4BEEBE99.4050105@maecke.net> <20100517102007.GQ92942@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ixDdryD3ui8aoCe5" Content-Disposition: inline In-Reply-To: <20100517102007.GQ92942@cicely7.cicely.de> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org, Tjado M?cke , "Julian H. Stacey" Subject: Re: /dev/null & zero inside chroot for make release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2010 10:26:41 -0000 --ixDdryD3ui8aoCe5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 17, 2010 at 12:20:07PM +0200, Bernd Walter wrote: > On Sat, May 15, 2010 at 05:32:41PM +0200, Tjado M?cke wrote: > >=20 > > > Thanks for trying to help :-) But this is in Wrong. > > > Line 4 on that page: > > > Last updated: 2005-08-11 > > > 5 years later, FreeBSD-8.0 has via ls -l /dev/null > > > crw-rw-rw- 1 root wheel 0, 31 May 15 14:17 /dev/null > > > so both major & minor numbers have changed, command now would be > > > mknod dev/null c 0 31 > > > which I already posted in my original Thu, 13 May 2010 19:44:58 +0200 > > > as having tried, but not good enough. > > > > > > As I posted Fri, 14 May 2010 21:59:23 +0200 (but you may not have > > > seen when you posted) > > > > > > =20 > >=20 > > Hm... i did this on 7.2 because chrooted scponly shell with WinSCP > > support needs it. In this case it works... > > But I'm wrong because the dev/null with my nod numbers doesn't work > > correctly and WinSCP looks only if this file is there :D >=20 > On my 7.0-stable I have: > [192]cicely7> ls -al /dev/null > crw-rw-rw- 1 root wheel 0, 14 May 17 12:11 /dev/null >=20 > You may very well have you HDD under 2,2 and having any innocent program > writing it's output to it... > Fortunately it takes many devnodes until 2,2 is getting used. For very long time, the following two statements are true: - char devices only have magic property of being a door to the device drivers when living on devfs mount point. Character devices on UFS or any other non-devfs mounts do not provide access to the physical devices. - major and minor numbers of devfs nodes, as displayed by ls, are not persistent across reboot. mknod on devfs is only useful to unhide the rm'ed node. --ixDdryD3ui8aoCe5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkvxGdkACgkQC3+MBN1Mb4j9fACferelEcUfCgWDAIocQ8pKz87M FGoAoJrBsH4Yt6hNR/ngjyD+RT+A37GT =edxm -----END PGP SIGNATURE----- --ixDdryD3ui8aoCe5--