Date: Tue, 15 May 2001 08:58:06 +0100 From: Brian Somers <brian@Awfulhak.org> To: Kris Kennaway <kris@obsecurity.org> Cc: Brian Somers <brian@Awfulhak.org>, Alfred Perlstein <bright@wintelcom.net>, Poul-Henning Kamp <phk@critter.freebsd.dk>, Robert Watson <rwatson@FreeBSD.org>, Greg Lehey <grog@lemis.com>, Eric Melville <eric@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@Awfulhak.org Subject: Re: Destroying and remaking device nodes Message-ID: <200105150758.f4F7w7535396@hak.lan.Awfulhak.org> In-Reply-To: Message from Kris Kennaway <kris@obsecurity.org> of "Mon, 14 May 2001 17:12:10 PDT." <20010514171210.A66354@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Tue, May 15, 2001 at 12:54:04AM +0100, Brian Somers wrote: > > > * Poul-Henning Kamp <phk@critter.freebsd.dk> [010514 07:08] wrote: > > > >=20 > > > > I intended to ignore the major and minor arguments in mknod(2), simply > > > > treating it as a request to re-create the named node. > > >=20 > > > It sounds nice, however that's a major POLA violation, no? > >=20 > > I agree. I think mknod should either do as asked or fail, not do=20 > > what the developer thinks the user should have asked. > > The problem is, how do you know the major/minor number of the device, > if you haven't installed MAKEDEV (which is about the only reference I > know of apart from the source)? Yes.... We really don't want to expose the major numbers to userland anyway (they should be hidden away as part of the implementation and maybe allocated on demand). Personally I prefer the ability to simply touch the name (as currently works with the clone handler): # cd dev # ls -l tun* ls: tun*: No such file or directory # touch tun2 # ls -l tun* crw------- 1 root wheel 52, 2 May 15 08:34 tun2 > Kris -- Brian <brian@Awfulhak.org> <brian@[uk.]FreeBSD.org> <http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org> Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105150758.f4F7w7535396>