I have a host called "host" and a jail running on that host called "jail" I am trying to allow a regular user logged in interactively inside the jail to use fusefs to mount an iso, through the archivemount program.
On host:
Here is what happens when I try to mount the iso on jail as a regular user:
And what happens when I try to mount the ISO on jail as root:
Where mnt is owned by the regular user and mnt2 is owned by root. Both are directories.
Any suggestions on how to debug further?
On host:
Code:
host# sysctl vfs.usermount
vfs.usermount: 1
host# sysctl security.jail.enforce_statfs
security.jail.enforce_statfs: 1
host# sysctl security.jail.mount_allowed
security.jail.mount_allowed: 1
host#
host# kldstat
Id Refs Address Size Name
1 79 0xffffffff80200000 1513000 kernel
2 1 0xffffffff819de000 fe03c ispfw.ko
3 1 0xffffffff81c12000 48ff geom_stripe.ko
4 1 0xffffffff81c17000 10568 geom_raid3.ko
5 1 0xffffffff81c28000 102dd geom_raid5.ko
6 1 0xffffffff81c39000 5826 geom_gate.ko
7 1 0xffffffff81c3f000 4a1c geom_multipath.ko
8 1 0xffffffff81c44000 b1a dtraceall.ko
9 1 0xffffffff81c45000 4ed6 profile.ko
10 3 0xffffffff81c4a000 3564 cyclic.ko
11 10 0xffffffff81c4e000 3466f dtrace.ko
12 1 0xffffffff81c83000 fef0 systrace_freebsd32.ko
13 1 0xffffffff81c93000 10be4 systrace.ko
14 1 0xffffffff81ca4000 4ade sdt.ko
15 1 0xffffffff81ca9000 48eb lockstat.ko
16 1 0xffffffff81cae000 b664 fasttrap.ko
17 1 0xffffffff81cba000 6697 fbt.ko
18 1 0xffffffff81cc1000 556b dtnfscl.ko
19 1 0xffffffff81cc7000 458e dtmalloc.ko
20 1 0xffffffff81ccc000 8869 ipmi.ko
21 1 0xffffffff81cd5000 336a0 if_cxgbe.ko
22 2 0xffffffff81d09000 2bb1 vboxnetflt.ko
23 2 0xffffffff81d0c000 46f6c vboxdrv.ko
24 1 0xffffffff81d53000 44f8 ng_ether.ko
25 1 0xffffffff81d58000 400a vboxnetadp.ko
26 1 0xffffffff81d5d000 92cb fuse.ko
host#
Here is what happens when I try to mount the iso on jail as a regular user:
Code:
jail% archivemount file.iso ./mnt
fuse: failed to open fuse device: Permission denied
jail%
And what happens when I try to mount the ISO on jail as root:
Code:
jail# archivemount file.iso ./mnt2
mount_fusefs: /dev/fuse on /mnt/dan/content/test/mnt2: Operation not permitted
fuse: failed to mount file system: No such file or directory
jail#
Where mnt is owned by the regular user and mnt2 is owned by root. Both are directories.
Any suggestions on how to debug further?