From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 2 20:54:33 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6D01BC2F for ; Tue, 2 Dec 2014 20:54:33 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 2E3BF12D for ; Tue, 2 Dec 2014 20:54:32 +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 0529C1FE022; Tue, 2 Dec 2014 21:54:23 +0100 (CET) Message-ID: <547E271A.6070005@selasky.org> Date: Tue, 02 Dec 2014 21:54:50 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: arrowdodger <6yearold@gmail.com>, freebsd-hackers Subject: Re: Mapping SCSI driver to USB one. References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2014 20:54:33 -0000 On 12/02/14 21:39, arrowdodger wrote: > Hello. > I'm playing around with sysutils/hal sources and can't find a way to obtain > a SCSI driver to the corresponding USB device. In other words, knowing > "umass0" i want to get "da0" for it. >>From what i can tell, HAL uses CAM API's (/dev/xpt0 stuff), but working > with it requires elevated privileges. Probably, because of that hald-runner > is running under root. > Is there any way to perform such mapping as regular user? Hi, Maybe "devinfo" will give you the answer. --HPS