From owner-freebsd-usb@FreeBSD.ORG Tue Aug 2 23:31:08 2011 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 167E2106566B for ; Tue, 2 Aug 2011 23:31:08 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id CEE0C8FC16 for ; Tue, 2 Aug 2011 23:31:07 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:e80d:890e:27ac:d1e0]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id E3F914AC1C for ; Wed, 3 Aug 2011 03:31:05 +0400 (MSD) Date: Wed, 3 Aug 2011 03:31:03 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <1896008072.20110803033103@serebryakov.spb.ru> To: freebsd-usb@FreeBSD.org In-Reply-To: <211179318.20110803023709@serebryakov.spb.ru> References: <1523100399.20110803022059@serebryakov.spb.ru> <211179318.20110803023709@serebryakov.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: Subject: Access rights for specific USB device in /dev? (Was: Ippon UPS over USB (ugen1.2: at usbus1)?) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2011 23:31:08 -0000 Hello, Freebsd-usb. You wrote 3 =E0=E2=E3=F3=F1=F2=E0 2011 =E3., 2:37:09: > Now I have another question: devfs(8) uses device types or paths to > specify access rules for /dev/*, which is bad idea for USB device, as > it will change path when cable will be re-attached to another port. Is > here any method to set owner:group of device node by VID/PID or ID > string or something like this? I've tried to add "attach" rule to devd.conf, but here is one problem: $device-name is "ugen1.2" for example, and "devfs" change owner and permissions on /dev/ugen1.2, but it is only "symbolic link" and real device is "/dev/usb/1.2.0" in such case -- as result, owner and permissions on real device stay unchanged and "blazer_usb" can not access it again :( --=20 // Black Lion AKA Lev Serebryakov