From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 2 20:40:00 2014 Return-Path: Delivered-To: freebsd-hackers@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 52FFE935 for ; Tue, 2 Dec 2014 20:40:00 +0000 (UTC) Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [IPv6:2607:f8b0:4001:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A6CCEFE for ; Tue, 2 Dec 2014 20:40:00 +0000 (UTC) Received: by mail-ie0-f181.google.com with SMTP id tp5so12379326ieb.12 for ; Tue, 02 Dec 2014 12:39:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Yxt6pBD3u76ggQKZlzPowzT4YfyEaU5JemJB6JDY29o=; b=pOAmbkspDh0Yn4I/UWxTuhc6u5ZuzCOQ2CPqJfkt3umf8UofbPFqLNAzr2IN4Va4Vq VI0qMNRSD6FNY2s0oSgScYuMgtc3/4CIH/AgQyeIBotqzON2b8rYW0v4TlU+4UtaaDMn KerYV0QQNMsJj095FdIfr6zPPZIR7hYAlM+0WC7Rq/9/c9ybuLIR/mzOrYSi6Gn83hav 61W5G3JQB1n5XmRe0IIwyHPWLXiAO2bTZSSwvhIiUd/bNr9P9ZdkYhBtOmXa5EEExfnU cSxL92vnd7TmamyyTJvkrtfbZFqDd62na9s4yBJwrfGesFdK+mn40iof4rmJJLz+0JTI 0d/g== X-Received: by 10.43.2.4 with SMTP id ns4mr4269651icb.13.1417552799530; Tue, 02 Dec 2014 12:39:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.164.214 with HTTP; Tue, 2 Dec 2014 12:39:29 -0800 (PST) From: arrowdodger <6yearold@gmail.com> Date: Wed, 3 Dec 2014 00:39:29 +0400 Message-ID: Subject: Mapping SCSI driver to USB one. To: freebsd-hackers Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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:40:00 -0000 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?