From owner-freebsd-current@FreeBSD.ORG Thu May 15 13:53:46 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 2B1AF37B401 for ; Thu, 15 May 2003 13:53:46 -0700 (PDT) Received: from c001.snv.cp.net (h008.c001.snv.cp.net [209.228.32.122]) by mx1.FreeBSD.org (Postfix) with SMTP id 77A9E43FA3 for ; Thu, 15 May 2003 13:53:45 -0700 (PDT) (envelope-from jeff@walters.name) Received: (cpmta 8614 invoked from network); 15 May 2003 13:53:44 -0700 Received: from 24.216.194.242 (HELO 10.0.1.51) by smtp.register-admin.com (209.228.32.122) with SMTP; 15 May 2003 13:53:44 -0700 X-Sent: 15 May 2003 20:53:44 GMT From: Jeff Walters To: current@freebsd.org Date: Thu, 15 May 2003 16:53:43 -0400 User-Agent: KMail/1.5.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200305151653.43540.jeff@walters.name> Subject: Comment on devfs.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jeff@walters.name List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2003 20:53:46 -0000 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: #### Customizations # define ruleset number for following rules devfs ruleset 10 devfs rule delset # define custom rules # give operator access to the CDs, floppy and USB Compact Flash drives devfs rule add path "acd*" group operator mode 660 devfs rule add path "fd0*" group operator mode 660 devfs rule add path "da*" group operator mode 660 # apply ruleset devfs rule applyset Currently devfs.conf doesn't do the corresponding thing. I have a small patch (I could submit (where?)) on /etc/rc.d/devfs, and adds the ability to put a "rule" type of line in /etc/devfs.conf: # give operator access to the CD, floppy and Compact Flash drives rule "acd*" group operator mode 660 rule "fd0*" group operator mode 660 rule "da*" group operator mode 660 ... and have devfs ruleset 10 (arbitrary) created and applied with these rules, if anyone else likes the idea. Jeff