zirias@
Developer
Hi all,
I'm trying to create a jail with mounted devfs inside another jail and get the following error:
But the following works:
Of course I don't want to have a full devfs in my jail. Why does it fail when the ruleset option is given?
Configuration of the "outer" jail is as follows:
Thanks,
Felix
I'm trying to create a jail with mounted devfs inside another jail and get the following error:
Code:
builder# jail -c host=inherit path=/usr/local/poudriere/jails/sysbuilder mount.devfs command=/bin/sh
mount: .: Operation not permitted
jail: /sbin/mount -t devfs -oruleset=4 . /usr/local/poudriere/jails/sysbuilder/dev: failed
Code:
builder# /sbin/mount -t devfs . /usr/local/poudriere/jails/sysbuilder/dev
Configuration of the "outer" jail is as follows:
Code:
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
mount.devfs;
mount.fstab = "/var/jail/${name}.fstab";
host.hostname = "${name}.home.palmen-it.de";
allow.noset_hostname;
path = "/var/jail/${name}/jail";
builder {
ip4.addr = 192.168.99.41, 127.0.0.1;
interface = tap0;
ip6 = inherit;
children.max = 20;
allow.mount;
allow.mount.devfs;
allow.mount.procfs;
allow.mount.linprocfs;
allow.mount.zfs;
allow.mount.nullfs;
allow.mount.tmpfs;
allow.raw_sockets;
allow.socket_af;
allow.sysvipc;
allow.chflags;
enforce_statfs=1;
exec.poststart="zfs jail builder zroot/poudriere && jexec builder zfs mount -a";
exec.prestop="jexec builder zfs umount -a && zfs unjail builder zroot/poudriere";
}
Felix