ch(4) FreeBSD 11.1 jails

Scott Long scottl at samsco.org
Sat Dec 16 22:53:53 UTC 2017


Hi Dan,

Try unhiding and giving permissions to /dev/xpt0.  Not sure if something changed there between 10.x and 11.x, but I suspect that it would be necessary regardless.  A truss/ktrace output will be necessary if that doesn’t work.

Scott

Sent from my iPhone

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



More information about the freebsd-scsi mailing list