From owner-freebsd-stable@FreeBSD.ORG Wed Mar 15 18:22:00 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7586B16A41F for ; Wed, 15 Mar 2006 18:22:00 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04B8943D48 for ; Wed, 15 Mar 2006 18:22:00 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id DF50B1A4E45; Wed, 15 Mar 2006 10:21:59 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 3FB5E515BE; Wed, 15 Mar 2006 13:21:59 -0500 (EST) Date: Wed, 15 Mar 2006 13:21:59 -0500 From: Kris Kennaway To: Brian Candler Message-ID: <20060315182159.GA85131@xor.obsecurity.org> References: <20060315174238.GA60143@uk.tiscali.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <20060315174238.GA60143@uk.tiscali.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: Strangeness with /dev nodes and mknod X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2006 18:22:00 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 15, 2006 at 05:42:38PM +0000, Brian Candler wrote: > I have a box running 6.0-STABLE as of 10 Nov last year. >=20 > Previously I had created device nodes for /dev/random within chroot > environments (this was for building and testing openssl). However now they > don't work. I am left with the strange situation that device nodes from > devfs work, but seemingly indentical device nodes created with mknod don'= t. >=20 > # dd if=3D/dev/random bs=3D1 count=3D8 | hexdump > 8+0 records in > 8+0 records out > 8 bytes transferred in 0.000070 secs (114131 bytes/sec) > 0000000 6eaf 1d71 513b 8d8c =20 > 0000008 > # mknod /tmp/test1 c 0 24 root:wheel > # mknod /tmp/test2 c 24 0 root:wheel > # chmod 666 /tmp/test1 /tmp/test2 > # ls -l /tmp/test1 /tmp/test2 > crw-rw-rw- 1 root wheel 0, 24 Mar 15 17:45 /tmp/test1 > crw-rw-rw- 1 root wheel 24, 0 Mar 15 17:45 /tmp/test2 > # dd if=3D/tmp/test1 bs=3D1 count=3D8 | hexdump > dd: /tmp/test1: Operation not supported > # dd if=3D/tmp/test2 bs=3D1 count=3D8 | hexdump > dd: /tmp/test2: Operation not supported >=20 > Why do my lovingly hand-created device nodes fail with "Operation not > supported"? man devfs; you don't (can't) create device nodes by hand any more. Kris --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEGFtGWry0BWjoQKURAoDMAJ92/dhe/YFCbuaICrJhRlnSMRHPHACfR+WB 5ZAoDC3JHfUIZ5LNxcPZ6Yw= =/brs -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--