From owner-freebsd-stable@FreeBSD.ORG Wed Dec 14 00:54:52 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 B9A9016A41F for ; Wed, 14 Dec 2005 00:54:52 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from mail.united-ware.com (am-productions.biz [69.61.164.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE4FD43D5A for ; Wed, 14 Dec 2005 00:54:51 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.100] (am-productions.biz [69.61.164.22]) (authenticated bits=0) by mail.united-ware.com (8.13.4/8.13.4) with ESMTP id jBE0vS6F080994 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 13 Dec 2005 19:57:34 -0500 (EST) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-stable@freebsd.org Date: Tue, 13 Dec 2005 19:56:43 -0500 User-Agent: KMail/1.8.3 References: <439EF8B5.4030702@gmx.de> <439F24B2.1080408@gmx.de> <439F4AA4.5070500@earthmagic.org> In-Reply-To: <439F4AA4.5070500@earthmagic.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4031399.fXJWB8Hav3"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200512131956.51785.mistry.7@osu.edu> X-Spam-Status: No, score=-4.9 required=5.0 tests=ALL_TRUSTED,BAYES_20, J_CHICKENPOX_55,MYFREEBSD2 autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on mail.united-ware.com X-Virus-Scanned: ClamAV 0.87/1209/Mon Dec 12 10:48:01 2005 on mail.united-ware.com X-Virus-Status: Clean Cc: "\[LoN\]Kamikaze" , Johny Mattsson 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: Wed, 14 Dec 2005 00:54:52 -0000 --nextPart4031399.fXJWB8Hav3 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 13 December 2005 05:26 pm, Johny Mattsson wrote: > On 12/14/05 06:44, [LoN]Kamikaze wrote: > > 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). > > > > 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. > > Note that while for you it might be sufficient to have a hard coded > link from /dev/pilot to /dev/ttyU0, that is not necessarily the > case if you have multiple USB serial gadgets. > The way I handled it is by using an entry in /etc/usbd.conf: > > # > # Fixup permissions for Palm Handheld ucom devices > # (set here and not in devfs.rules since we only want to apply > # the change to Palm com ports, not all USB com ports) > device "PalmHandheld" > devname "ucom[0-9]+" > vendor 0x0830 > attach "/bin/chmod 0666 /dev/${DEVNAME} ; /bin/ln -s > /dev/${DEVNAME} /dev/pilot" > detach "rm -f /dev/pilot > Roland already mentioned this point, but usbd and usbd.conf have been=20 depreciated since 5.x. They WILL be going away in CURRENT (usbd.conf=20 no longer has any entries) once Ian gets a chance to review and=20 commit the patches. If you are in need of the release field for usb=20 devices on 5.x or 6.x check out: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D73799 =2D-=20 Anish Mistry --nextPart4031399.fXJWB8Hav3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDn23TxqA5ziudZT0RAsGvAJ9wVDJUvJmjZgND/ciCqXo+A8xVcgCgvSDt iZheel+/dZY14bnryetWI1s= =U2+f -----END PGP SIGNATURE----- --nextPart4031399.fXJWB8Hav3--