Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Dec 2017 15:53:04 -0700
From:      Scott Long <scottl@samsco.org>
To:        Dan Langille <dan@langille.org>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: ch(4) FreeBSD 11.1 jails
Message-ID:  <2E65031F-E39F-43FD-9D7C-25890A5ED641@samsco.org>
In-Reply-To: <19FE523D-3A29-4EC1-BD11-71F2A9A84456@langille.org>
References:  <19FE523D-3A29-4EC1-BD11-71F2A9A84456@langille.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Dan,

Try unhiding and giving permissions to /dev/xpt0.  Not sure if something cha=
nged there between 10.x and 11.x, but I suspect that it would be necessary r=
egardless.  A truss/ktrace output will be necessary if that doesn=E2=80=99t w=
ork.

Scott

Sent from my iPhone

> On Dec 16, 2017, at 3:05 PM, Dan Langille <dan@langille.org> wrote:
>=20
> I'm trying to access a tape library from within a FreeBSD 11 jail.
>=20
> I've added this to the host system:
>=20
> [devfsrules_jail_unhide_tapes=3D5]
> add path sa0    unhide
> add path pass0  unhide
> add path pass7  unhide mode 0600
> add path ch0    unhide
> add path nsa0   unhide
>=20
> add path sa1    unhide
> add path pass8  unhide
> add path pass9  unhide mode 0600
> add path ch1    unhide
> add path nsa1   unhide
>=20
>=20
> [devfsrules_jail_bacula=3D6]
> add include $devfsrules_hide_all
> add include $devfsrules_unhide_basic
> add include $devfsrules_unhide_login
> add path zfs unhide
> add include $devfsrules_jail_unhide_tapes
>=20
>=20
>=20
> The jail can see the devices, and query the tape drive, but not the change=
r:
>=20
> $ sudo mtx -f /dev/pass7 status
> cannot open SCSI device '/dev/pass7' - Operation not permitted
>=20
> The same command in the jail host succeeds.
>=20
> Is there something more special I'm missing about FreeBSD 11.1? This worke=
d for me under 10.3.
>=20
> Thank you.
>=20
>=20
> --=20
> Dan Langille - BSDCan / PGCon
> dan@langille.org
>=20
>=20
> _______________________________________________
> freebsd-scsi@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-scsi
> To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2E65031F-E39F-43FD-9D7C-25890A5ED641>