Re: unionfs in jails
- Reply: Olivier Certner : "Re: unionfs in jails"
- In reply to: Olivier Certner : "Re: unionfs in jails"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Apr 2025 06:53:24 UTC
Hello Olivier,
I've also see no reason but:
# mount_unionfs  shapes/vm/ vmsys/
mount_unionfs: /bsdsrc/14s/vmsys: : Operation not permitted
also 
# lsvfs
Filesystem                              Num  Refs  Flags
-------------------------------- ---------- -----  ---------------
nullfs                           0x00000029     1  loopback, jail
unionfs                          0x00000041     0  loopback
and the manual:
 allow.mount
                     privileged users inside the jail will be able to mount
                     and unmount file system types marked as jail-friendly.
                     The lsvfs(1) command can be used to find file system
P.S. jail config contain:
        allow.mount;
        allow.mount.zfs;
        allow.mount.nullfs;
        allow.mount.devfs;
        allow.mount.tmpfs;
        allow.mount.procfs;
        allow.mount.linprocfs;
        enforce_statfs = 1;
Wednesday, April 9, 2025, 10:26:52 PM, you wrote:
> Hi,
> There's no reason (that I know of) you could not use unionfs in jails.  However, unionfs has been needing attention and deep fixes for a long time (irrespective of its use in jails), which has been on my TODO list for a while (work should start relatively soon now...).  There has been stabilization work by jah@ in the past years.  At this point, your best bet is just to try it and report any problem you encounter.
> Thanks and regards.
-- 
Best regards,
Anthony