From owner-freebsd-rc@FreeBSD.ORG Wed Jun 29 16:47:54 2005 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB93816A41C; Wed, 29 Jun 2005 16:47:54 +0000 (GMT) (envelope-from matteo@freebsd.org) Received: from vsmtp2.tin.it (vsmtp2alice.tin.it [212.216.176.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77B9443D4C; Wed, 29 Jun 2005 16:47:54 +0000 (GMT) (envelope-from matteo@freebsd.org) Received: from kaiser.sig11.org (82.48.161.10) by vsmtp2.tin.it (7.0.027) id 42BFF6CB0016B1E0; Wed, 29 Jun 2005 18:45:50 +0200 Received: by kaiser.sig11.org (Postfix, from userid 1000) id 91B2D611F; Wed, 29 Jun 2005 18:45:50 +0200 (CEST) Date: Wed, 29 Jun 2005 18:45:50 +0200 From: Matteo Riondato To: Mike Makonnen Message-ID: <20050629164550.GJ7953@kaiser.sig11.org> References: <20050615162744.GP1053@kaiser.sig11.org> <20050629161319.GA75533@rogue.smit.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050629161319.GA75533@rogue.smit.lan> User-Agent: Mutt/1.4.2.1i Cc: edwin@mavetju.org, mmolteni@cisco.com, freebsd-rc@freebsd.org, bug-followup@FreeBSD.org Subject: Re: kern/63954: devfs loses permissions X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2005 16:47:54 -0000 On Wed, Jun 29, 2005 at 07:13:19PM +0300, Mike Makonnen wrote: > On Wed, Jun 15, 2005 at 06:27:44PM +0200, Matteo Riondato wrote: > > Patch for this against /etc/rc.d/devfs follows and can be found at > > http://www.riondabsd.net/diff/devfs.diff. Please note that this patch > > includes fix for PR bin/65693 (wildcarded device names in devfs.conf > > ). I hope someone will pick this up and commit the patch. > > > > ummm... you have the right idea, except it has already been implemented for > a while: devfs.rules(5). The devfs.conf(5) file is > still with us because it does one thing devfs.rules(5) can't do, which is > make symlinks (which it can't because devfs(8) can't :-)) > > So, what you should do is edit /etc/devfs.rules with: > [myworkstation=500] > add path bpf* mode 0640 > > Then edit /etc/rc.conf and add: > devfs_system_ruleset=myworkstation Then having any other kind of rule in devfs.conf should is kind of useless, at least for devices that can "disappear", since rules referring to them will not be added do the devfs ruleset, and this implies that one have to rerun /etc/rc.d/devfs after reinserting the pcmcia nic or after launching tcpdump or whatever. Anyway, I see that this is documented on devfs.conf(5), so you can close this PR (and bin/65693 too). -- Matteo Riondato FreeBSD Volunteer (http://freebsd.org) G.U.F.I. Staff Member (http://www.gufi.org) FreeSBIE Developer (http://www.freesbie.org)