devfs
[Top] [All Lists]

Re: a bug(?), some requests/suggestions

To: Linux devfs <devfs@xxxxxxxxxxx>
Subject: Re: a bug(?), some requests/suggestions
From: pg_mh@xxxxxxxxxxxxxxxx (Piercarlo Grandi)
Date: Wed, 28 Nov 2001 23:09:05 +0000
In-reply-to: <200107310056.f6V0uMb13781@mobilix.ras.ucalgary.ca>
References: <15196.45808.642654.342681@home.sabi.co.UK> <200107310056.f6V0uMb13781@mobilix.ras.ucalgary.ca>
Reply-to: pg_mh@xxxxxxxxxxxxxxxx (Piercarlo Grandi)
Sender: owner-devfs@xxxxxxxxxxx
[ ... ]

>> * Another possible bug: in the manuals page for 'devfsd' in the section
>> 'CAVEATS' you mention the danger of using a ``devname'' like "cdrom",
>> as it is not anchored by either/both '^' or '$'.
>> 
>> However the sample 'devfsd.conf' and some of examples in the FAQ use
>> similarly dangerous syntax. I have rewritten these REs in what I think
>> is a safer/nicer way (down to details like replacing '.*' with '^.'),
>> making essentially all ``devnames'' start with the '^' anchor, which I
>> think should be the case. I have attached it.

rgooch> Argh! You've changed it from a generic config file to something
rgooch> quite specific. [ ... ] Grab a fresh copy of the sample config
rgooch> file and edit that. [ ... ]

I have finally remembered about this; I have appended a copy of the
distributed 'devfsd.conf', with just the regular expressions made
tighter (anchored).

------------------------------------------------------------------------
# Sample /etc/devfsd.conf configuration file.
# Richard Gooch  <rgooch@xxxxxxxxxxxxx>         28-NOV-2001
#
# Enable full compatibility mode for old device names. You may comment these
# out if you don't use the old device names. Make sure you know what you're
# doing!
REGISTER        ^               MKOLDCOMPAT
UNREGISTER      ^               RMOLDCOMPAT

# You may comment out the above and uncomment the following if you've
# configured your system to use the original "new" devfs names or the really
# new names
#REGISTER       ^vc/            MKOLDCOMPAT
#UNREGISTER     ^vc/            RMOLDCOMPAT
#REGISTER       ^pty/           MKOLDCOMPAT
#UNREGISTER     ^pty/           RMOLDCOMPAT
#REGISTER       ^misc/          MKOLDCOMPAT
#UNREGISTER     ^misc/          RMOLDCOMPAT

# You may comment these out if you don't use the original "new" names
REGISTER        ^               MKNEWCOMPAT
UNREGISTER      ^               RMNEWCOMPAT

# Enable module autoloading. You may comment this out if you don't use
# autoloading
LOOKUP          ^               MODLOAD

#
# Uncomment this if you want permissions to be saved and restored
# Do not do this for pseudo-terminal devices
#REGISTER       ^pt[sy]/        IGNORE
#CHANGE         ^pt[sy]/        IGNORE
#REGISTER       ^               COPY    /dev-state/$devname $devpath
#CHANGE         ^               COPY    $devpath /dev-state/$devname
#CREATE         ^               COPY    $devpath /dev-state/$devname

#
# Uncomment this if you want the old /dev/cdrom symlink
# (e.g. those specifying CD-ROM type, mouse port, modem port etc)
#
#LOOKUP         ^cdrom$         CFUNCTION GLOBAL symlink cdroms/cdrom0 $devpath
#REGISTER       ^cdrom/cdrom0$  CFUNCTION GLOBAL symlink cdroms/cdrom0 cdrom
#UNREGISTER     ^cdrom/cdrom0$  CFUNCTION GLOBAL unlink cdrom
------------------------------------------------------------------------


<Prev in Thread] Current Thread [Next in Thread>