Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jun 2006 16:38:23 -0400
From:      Garance A Drosehn <gad@FreeBSD.org>
To:        "Poul-Henning Kamp" <phk@phk.freebsd.dk>, "M. Warner Losh" <imp@bsdimp.com>
Cc:        pjd@FreeBSD.org, freebsd-arch@FreeBSD.org
Subject:   Re: Accessing disks via their serial numbers.
Message-ID:  <p06230900c0c744338e3e@[128.113.24.47]>
In-Reply-To: <62426.1151433799@critter.freebsd.dk>
References:  <62426.1151433799@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
At 6:43 PM +0000 6/27/06, Poul-Henning Kamp wrote:
>
>I don't think we should allow names that are not "under
>control", and by not "under control" I mean device names
>which the device driver writer doesn't control or at the
>very least sanitize.
>
>For instance, if you want to create names that match random
>strings, like the tape labels in your robot, the sensible
>and security concious device driver writer makes sure the
>names have a unique prefix:
>
>	/dev/tape/$label
>
>or similar, so that devfs(8) rules can be written in a
>surefire way.

This strikes me as a worthwhile idea.  Leave the device-
entries in /dev as they are now, but then create some
sub-directories which would hold the more arbitrary (or
"non-sanitized") names.
      /dev/info/disk/serial-num
or   /dev/info/geom/whatever

etc.  That way there's only one new entry in /dev, and
people could just de-permit that directory (or turn the
feature off) if they didn't want or need to have that
extra info available.

-- 
Garance Alistair Drosehn     =               drosehn@rpi.edu
Senior Systems Programmer               or   gad@FreeBSD.org
Rensselaer Polytechnic Institute;             Troy, NY;  USA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p06230900c0c744338e3e>