From owner-svn-src-head@FreeBSD.ORG Wed Nov 5 07:22:40 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 344441B6; Wed, 5 Nov 2014 07:22:40 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA95AC72; Wed, 5 Nov 2014 07:22:39 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id F20C51FE022; Wed, 5 Nov 2014 08:22:37 +0100 (CET) Message-ID: <5459D04A.1080204@selasky.org> Date: Wed, 05 Nov 2014 08:22:50 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Alexey Dokuchaev Subject: Re: svn commit: r272820 - head/etc/devd References: <201410091358.s99DwKA2097240@svn.freebsd.org> <20141104233123.GA7135@FreeBSD.org> In-Reply-To: <20141104233123.GA7135@FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2014 07:22:40 -0000 On 11/05/14 00:31, Alexey Dokuchaev wrote: > 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 > > Hi, This file is just an example and bandaid for those that want to integrate USB printers with cups. For real use you would need to substitute root:wheel with cups:cups or something like that. We possibly need a printer class, maybe just create cups:cups from the start? --HPS