From owner-freebsd-current@FreeBSD.ORG Tue Aug 24 04:55:16 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC9DE16A4CE for ; Tue, 24 Aug 2004 04:55:16 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7155C43D60 for ; Tue, 24 Aug 2004 04:55:16 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.102] (ddsl-66-42-172-210.fuse.net [66.42.172.210]) (authenticated bits=0)i7O4gPjr033280 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 24 Aug 2004 00:42:26 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-current@freebsd.org Date: Tue, 24 Aug 2004 00:56:34 -0400 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message-Id: <200408240056.42066.mistry.7@osu.edu> X-Spam-Status: No, hits=-2.4 required=5.0 tests=PGP_SIGNATURE,RCVD_IN_ORBS,USER_AGENT_KMAIL version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: devfs rules not applied on reattach X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2004 04:55:17 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Not sure if this is a bug or not, but my understanding of device rules tha= t=20 are placed in /etc/devfs.conf are supposed to be applied when a device is=20 attached. ie. perm da0 0666 perm da0s1 0666 perm da1 0666 perm da1s1 0666 perm da2 0666 perm da2s1 0666 perm da3 0666 perm da3s1 0666 These permissions are applied on boot since /etc/rc.d/devfs runs and applie= s=20 them, but shouldn't they be reapplied when the device disappears and=20 reappears? For example: 1) USB 6-in1 reader is attached during boot 2) disk reader is unplugged and device nodes destroyed 3) plug in reader and device nodes come up, but permissions are now 0640 no= t=20 0666 like the rule in devfs.conf Is this expected behavior? Thanks, =2D --=20 Anish Mistry =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBKsqJxqA5ziudZT0RApWuAKC44HrE0ZzZttTELpgc42k4PTXIEgCfT8VX PvFo92hJ2f/0gvj8ojTYvNs=3D =3DJLdx =2D----END PGP SIGNATURE-----