Hi everybody,
could anybody tell me how I could mount /tmp on a memory filesystem inside my jails? My jail's /etc/rc.conf reads:
but it won't start. If I jexec in that jail, and use dd and mdconfig to create a vnode of the filesize I wish, and then execute:
I get the aforementioned error. My /etc/devfs.rules in jail 0 (host) unhides md* devices, hence I am able to create the vnode, and security.jail.mount_allowed=1 in jail 0 as well.
If for some reason this "type of" mount is not allowed inside the jail, I wouldn't have a problem to do it via jail 0, as long as the tmp filesystem gets mounted before the jail scripts are executed.
Thank you all in advance.
could anybody tell me how I could mount /tmp on a memory filesystem inside my jails? My jail's /etc/rc.conf reads:
Code:
tmpmfs="YES" # Set to YES to always create an mfs /tmp, NO to never
tmpsize="128m" # Size of mfs /tmp if created
tmpmfs_flags="-S" # Extra mdmfs options for the mfs /tmp
Code:
# mount /dev/md4 /tmp
mount: /dev/md4 : Operation not permitted
If for some reason this "type of" mount is not allowed inside the jail, I wouldn't have a problem to do it via jail 0, as long as the tmp filesystem gets mounted before the jail scripts are executed.
Thank you all in advance.