From owner-svn-src-all@FreeBSD.ORG Tue Nov 4 23:31:23 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id AE57632E; Tue, 4 Nov 2014 23:31:23 +0000 (UTC) Date: Tue, 4 Nov 2014 23:31:23 +0000 From: Alexey Dokuchaev To: Hans Petter Selasky Subject: Re: svn commit: r272820 - head/etc/devd Message-ID: <20141104233123.GA7135@FreeBSD.org> References: <201410091358.s99DwKA2097240@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201410091358.s99DwKA2097240@svn.freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2014 23:31:23 -0000 On Thu, Oct 09, 2014 at 01:58:20PM +0000, Hans Petter Selasky wrote: > New Revision: 272820 > URL: https://svnweb.freebsd.org/changeset/base/272820 > > Log: > Add example devd configuration file for USB printers. > > +# Generic USB printer devices > +#notify 100 { > +# match "system" "USB"; > +# match "subsystem" "INTERFACE"; > +# match "type" "ATTACH"; > +# match "intclass" "0x07"; > +# match "intsubclass" "0x01"; > +# match "intprotocol" "(0x01|0x02|0x03)"; > +# action "chown root:wheel /dev/$cdev"; Calling chown(8) looks weird for two reasons: 1) root:wheel arguably should already be the default, and 2) device node credentials and permissions are usually set via devfs.rules(5). ./danfe