From owner-freebsd-stable@FreeBSD.ORG Tue Dec 13 19:21:44 2005 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 BDAED16A41F for ; Tue, 13 Dec 2005 19:21:44 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3702743D55 for ; Tue, 13 Dec 2005 19:21:44 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id jBDJLhj1007669; Tue, 13 Dec 2005 11:21:43 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id jBDJLhAO007665; Tue, 13 Dec 2005 11:21:43 -0800 Date: Tue, 13 Dec 2005 11:21:43 -0800 From: Brooks Davis To: Brooks Davis , "[LoN]Kamikaze" , freebsd-stable@freebsd.org Message-ID: <20051213192143.GA5926@odin.ac.hmc.edu> References: <439EF8B5.4030702@gmx.de> <20051213164947.GA17705@odin.ac.hmc.edu> <20051213180418.GA20852@slackbox.xs4all.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <20051213180418.GA20852@slackbox.xs4all.nl> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: Subject: Re: devfs doesn't set access rights 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: Tue, 13 Dec 2005 19:21:44 -0000 --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 13, 2005 at 07:04:18PM +0100, Roland Smith wrote: > On Tue, Dec 13, 2005 at 08:49:47AM -0800, Brooks Davis wrote: > > On Tue, Dec 13, 2005 at 05:37:09PM +0100, [LoN]Kamikaze wrote: > > > On my FreeBSD 6-stable (the last build is less then 24hours ago) my > > > devfs doesn't apply permissions set in /etc/devfs.conf when I attach = new > > > devices. I have to call: > > > /etc/rc.d/devfs restart > > > manually for the settings to be applied. This is rather uncomfortable= in > > > some cases (especially with my PDA). > > >=20 > > > I don't know weather this is the normal behaviour, anyway if it is, > > > shouldn't devfs be restarted automatically as soon as external devices > > > (usb, firewire, ir) are attached? > >=20 > > This is normal. devfs.conf is for boot only, you need devfs.rules for > > runtime. Unfortunatly, the documentation of this fact and the > > docuementation of devfs.rules sucks. >=20 > Hmm, it's quite explicitly mentioned in the manual pages for devfs.conf a= nd > devfs.rules.=20 >=20 > Feel free to suggest improvements... 90% of the problem is the existence of devfs.conf. devfs(8) appears capable of everything it does, but we still have two ways to do it which is gratuitously confusing. The devfs(8) documentation is lacking in a complete, working example, any documentation of the rc.conf variables (which also aren't documented in rc.conf(5) either), and any mention of that the purpose or usage of lines like: [devfsrules_unhide_basic=3D2] Setting the mode of a device node really ought to be trivial, but last time I looked at it I was clearly missing something and couldn't get it working. I decided the device in question really ought to be attached at boot and thus gave up and used devfs.conf since I had productive work to do. Some cook easy to use cookbook example would be really helpful for those who don't have time to figure out all the details. Comparativly few people will want to do anything more than make a device or two more accessable. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --jRHKVT23PllUwdXP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDnx9GXY6L6fI4GtQRAqrDAJ0eNNBxca5Sac7w3HS7tJyhOdAeRQCdEHLV mHB2xd8oHpYImTpWmeHoLV4= =jWnE -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--