From owner-freebsd-current@FreeBSD.ORG Fri May 16 00:14:57 2003 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 97EC537B401 for ; Fri, 16 May 2003 00:14:57 -0700 (PDT) Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2878343F93 for ; Fri, 16 May 2003 00:14:57 -0700 (PDT) (envelope-from DougB@freebsd.org) Received: from master.dougb.net (12-234-22-23.client.attbi.com[12.234.22.23]) by attbi.com (rwcrmhc52) with SMTP id <20030516071456052000vn40e>; Fri, 16 May 2003 07:14:56 +0000 Date: Fri, 16 May 2003 00:14:55 -0700 (PDT) From: Doug Barton To: Poul-Henning Kamp In-Reply-To: <3218.1053032141@critter.freebsd.dk> Message-ID: <20030515235901.B656@znfgre.qbhto.arg> References: <3218.1053032141@critter.freebsd.dk> Organization: http://www.FreeBSD.org/ X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: current@freebsd.org cc: jeff@walters.name Subject: Re: Comment on devfs.conf 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: Fri, 16 May 2003 07:14:57 -0000 On Thu, 15 May 2003, Poul-Henning Kamp wrote: > In message <200305151653.43540.jeff@walters.name>, Jeff Walters writes: > >The new /etc/devfs.conf arrangement is a good thing but it doesn't work for > >devices that are created on the fly after boot, and it gives an error on > >wildcards on device names. > > > >I suggest for /etc/rc.d/devfs that instead of changing the permissions and > >ownerships directly on device nodes, create a default devfs ruleset based on > >/etc/devfs.conf entries and apply the set. For example, previously you could > >modify /etc/rc.devfs with the logic like: The fact that you could do wild stuff with the old rc.devfs was a result of the fact that it combined the features of a config file and a startup script into one. That model doesn't work with rcNG, so I did my best to replicate the basics of the old functionality so that we could go forward with it for 5.1. If you have a patch to add additional functionality, send it over, I'll be glad to look at it. > I must admit that I should have looked at this, now that I have, I fully > agree: The policy setup at boot should be not just applied once, but > made the default ruleset. I think we should have both options, actually, to provide the most flexibility. However if using the rule interface is the preferred method of implementation for permissions and ownership, we can comment devfs.conf appropriately. Better is always better. :) We'll need to leave in the mechanism to create links at least, though. Doug -- This .signature sanitized for your protection