Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2005 21:29:24 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: devfs doesn't set access rights
Message-ID:  <20051213202924.GC23420@slackbox.xs4all.nl>
In-Reply-To: <439F24B2.1080408@gmx.de>
References:  <439EF8B5.4030702@gmx.de> <20051213164947.GA17705@odin.ac.hmc.edu> <20051213180418.GA20852@slackbox.xs4all.nl> <20051213192143.GA5926@odin.ac.hmc.edu> <439F24B2.1080408@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--KN5l+BnMqAQyZLvT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Dec 13, 2005 at 08:44:50PM +0100, [LoN]Kamikaze wrote:
> Well, here are my conclusions.
>=20
> 1)
> The manpage for devfs.rules should mention that you have to set
>=20
> devfs_system_ruleset=3D"yourruleset"
>=20
> in /etc/rc.conf . I didn't see it anywhere.

Agreed. I've posted a patch in this thread for that. If there are no
comments, I'll send-pr it.
=20
<snip>
> 3)
> There is one kind of thing I cannot do in /etc/devfs.rules, creating
> links. So I am still doing this in /etc/devfs.conf (links don't cause
> race conditions anyway, I hope).

Maybe devd could be used for that.

> One would think that "link ttyU0 pilot" would simply be translated to
> "ln -s /dev/ttyU0 /dev/pilot" which would simply create the link and it
> would work as soon as a ttyU0 device (my PDA) is there. But instead it
> checks weather the device exists (of course it doesn't since I didn't
> press the hotsync button during boot) and omits the creation of the link.
>=20
> So either the behaviour of /etc/rc.d/devfs has to be changed or it has
> to be dumped entirely and /sbin/devfs has to implement a way to create
> links (the solution I would prefer).

And maybe there should be a combination with devd?

Roland
--=20
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt

--KN5l+BnMqAQyZLvT
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDny8kEnfvsMMhpyURAtsJAJ9g9Sb9iP8eL1hrsi858qcl/VwYNQCeJupT
9IaxTqJNVOtMTCdxvwFrfsM=
=tNQu
-----END PGP SIGNATURE-----

--KN5l+BnMqAQyZLvT--



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