From owner-freebsd-current@FreeBSD.ORG Wed Feb 4 10:04:08 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4BB7106564A for ; Wed, 4 Feb 2009 10:04:08 +0000 (UTC) (envelope-from vova@sw.ru) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 2F97B8FC1B for ; Wed, 4 Feb 2009 10:04:07 +0000 (UTC) (envelope-from vova@sw.ru) Received: from vbook.fbsd.ru ([10.30.1.111]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id n14A45u1016241 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 4 Feb 2009 13:04:06 +0300 (MSK) Received: from vova by vbook.fbsd.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LUec1-000295-4U; Wed, 04 Feb 2009 13:04:05 +0300 From: Vladimir Grebenschikov To: Hans Petter Selasky In-Reply-To: <200902041049.27444.hselasky@c2i.net> References: <1233732660.1767.30.camel@localhost> <200902041049.27444.hselasky@c2i.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Wed, 04 Feb 2009 13:04:04 +0300 Message-Id: <1233741844.1767.133.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: freebsd-current@freebsd.org Subject: Re: USB2 - libusb20 vs devel/libusb X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2009 10:04:09 -0000 On Wed, 2009-02-04 at 10:49 +0100, Hans Petter Selasky wrote: > > I have security/libfprint (finger-print reader that uses ugen device) > > that stop working after upgrade. > > > > Following entry in /etc/libmap.conf make it works somehow > > libusb-0.1.so libusb20.so > > libusb-0.1.so.8 libusb20.so.1 > > > > It allows library to access usb device, but pam authentication with it > > still does not work ( looks like it reads fingerprint correctly, but > > fails later ). > > Have you checked the permissions of your device? > > usbconfig dump_access I guess problem is not in access, it reads device $ sudo -s Scan right ring finger on UPEK TouchStrip >>> it founds chip Scan didn't quite work. Please try again. >>> wrong scan Scan right ring finger on UPEK TouchStrip >>> good scan, and some kind of failure here Password: sudo: pam_authenticate: conversation failure $ # usbconfig -u 3 -a 3 dump_access Global Access: root:operator 0660 ugen3.3: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON Device Access: operator:operator 0660 Interface 0 Access: # (I am in operator group) > > > > What is right way to handle that situation ? > > Is there universal library, that will work for both stacks ? > > I was thinking about doing some detection inside libusb in ports, but > currently you have to switch manually. On problem is that the libusb code in > ports is not BSD licensed, so we cannot just copy in the old UGEN support :-( Probably we may provide patch against devel/libusb to depend it on libusb20 ? So devel/libusb will stay LGPLed but libusb20 will be BSD licensed ? -- Vladimir B. Grebenschikov vova@fbsd.ru