From owner-freebsd-current@freebsd.org Sun Dec 17 20:38:06 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22562E94F08 for ; Sun, 17 Dec 2017 20:38:06 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D8A197D47B for ; Sun, 17 Dec 2017 20:38:05 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 0A8CE25D389C; Sun, 17 Dec 2017 20:38:03 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 5E46DD1F834; Sun, 17 Dec 2017 20:38:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id OjibuAEvuWkA; Sun, 17 Dec 2017 20:38:01 +0000 (UTC) Received: from [192.168.1.224] (unknown [IPv6:fde9:577b:c1a9:f001::2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id D9D31D1F832; Sun, 17 Dec 2017 20:38:00 +0000 (UTC) From: "Bjoern A. Zeeb" To: "Dan Langille" Cc: freebsd-current@freebsd.org Subject: Re: cannot access pass device from within jail Date: Sun, 17 Dec 2017 20:37:59 +0000 X-Mailer: MailMate (2.0BETAr6102) Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Dec 2017 20:38:06 -0000 On 17 Dec 2017, at 19:52, Dan Langille wrote: > Hello, > > What suggestions do you have for where I should look next? I'm happy > to start installing various builds of FreeBSD in order to track down > which commit caused this. > > I'm trying to access a tape library from within a jail running on a > FreeBSD 11.1 host. sa(4) devices are working (e.g. I can rewind > nsa0). > > pass(4) devices (i.e. the tape changer ch0) are not working. This > morning I posted to -scsi@: > https://lists.freebsd.org/pipermail/freebsd-scsi/2017-December/007608.html > > The device appears in the jail and has appropriate permissions. This > access was granted > via /etc/devfs.rules using the same approach I used for FreeBSD 10.3 > > The permissions in the jail: > > [root@bacula-sd-02 ~]# ls -l /dev/pass7 > crw------- 1 root operator 0x74 Dec 16 21:52 /dev/pass7 > > The command in the jail: > > [root@bacula-sd-02 ~]# mtx -f /dev/pass7 status > cannot open SCSI device '/dev/pass7' - Operation not permitted > > Here is the truss output of the command in question: > https://gist.github.com/dlangille/b80ee804b8080e1cbf5b5ab67f0bdabe You don’t by any chance have a securelevel > 1 set for that jail? /bz