From owner-freebsd-questions@FreeBSD.ORG Wed Nov 9 15:22:49 2005 Return-Path: X-Original-To: FreeBSD-Questions@freebsd.org Delivered-To: FreeBSD-Questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71FD916A41F for ; Wed, 9 Nov 2005 15:22:49 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9C2643D4C for ; Wed, 9 Nov 2005 15:22:48 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 11197 invoked by uid 0); 9 Nov 2005 15:16:44 -0000 Received: from user-69-73-60-132.knology.net (HELO Grumpy.DynDNS.org) (69.73.60.132) by smtp3.knology.net with SMTP; 9 Nov 2005 15:16:44 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id AC1B66232; Wed, 9 Nov 2005 09:22:46 -0600 (CST) Date: Wed, 9 Nov 2005 09:22:46 -0600 From: David Kelly To: FreeBSD-Questions@freebsd.org Message-ID: <20051109152246.GA53278@Grumpy.DynDNS.org> References: <20051108150817.GA47825@Grumpy.DynDNS.org> <44wtjhaoaj.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44wtjhaoaj.fsf@be-well.ilk.org> User-Agent: Mutt/1.4.2.1i Cc: Subject: Re: devfs and bpf owner, group, and mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 15:22:49 -0000 On Wed, Nov 09, 2005 at 09:28:20AM -0500, Lowell Gilbert wrote: > David Kelly writes: > > > I'm having problems in 5.4 getting automatic ownership and mode correct > > on /dev/bpf2. Added this to /etc/devfs.conf: [...] > > Suspect my problem is related to [devfsrules_bpf=5] or the fact I > > haven't informed the system to apply this rule to the /dev filesystem. > > Good guess. I'm still on my first cup of coffee, and might have taken > a few more minutes to spot that. I got stuck in /etc/rc.subr studying the devfs routines without thinking to search for where they were called, /etc/rc.d/devfs. > > So where is the 'i' that I've failed to dot? > > try adding 'devfs_system_ruleset="devfsrules_bpf"' to rc.conf. Thats a leap I still haven't grasped from documentation and reading the scripts. Exactly the sort of thing hoped for by asking here! > To apply it before reboot would be something roughly like > 'devfs /dev ruleset devfsrules_bpf'. First couple of tries on variations of that didn't go. When is devfs.rules read? This did work: devfs add path 'bpf*' mode 0660 group tcpdump But by that time I had "devfs -m /dev ruleset 5" in effect which may have contributed to "devfs add path". /dev/bpf2 didn't exist, as mere user I launched tcpdump on my vlan0 device and /dev/bpf2 was created correctly! Hurray! Will see if 'devfs_system_ruleset="devfsrules_bpf"' works on reboot sometime later. :-) -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.