Hello guys,
I have been trying mount inside jail tmpfs and devfs but always get "operation not permited"
My steps:
Changed 0 -> 1
devfs
Changes 0 -> 1
jail.conf
Inside the jail im trying:
Someone can tell me what is wrong ?
Thanks !
I have been trying mount inside jail tmpfs and devfs but always get "operation not permited"
My steps:
Changed 0 -> 1
Code:
root@HardenedBSD:/home/bryn1u # sysctl -a | grep -i tmpfs
security.jail.param.allow.mount.tmpfs: 0
security.jail.mount_tmpfs_allowed: 1
Changes 0 -> 1
Code:
root@HardenedBSD:/home/bryn1u # sysctl -a | grep -i devfs
security.jail.param.allow.mount.devfs: 0
security.jail.param.devfs_ruleset: 0
security.jail.devfs_ruleset: 0
security.jail.mount_devfs_allowed: 1
Code:
Proton {
path = /zroot/jails/Proton;
mount;
allow.mount;
mount.devfs;
mount.procfs;
exec.clean;
exec.consolelog = "/var/log/jail_Proton_console.log";
devfs_ruleset = 50;
#mount.nodevfs;
mount += "dev /zroot/jails/Proton/dev devfs rw,ruleset=50";
mount += "fdesc /zroot/jails/Proton/dev/fd fdescfs rw", "proc /zroot/jails/Proton/proc procfs rw";
mount += "tmpfs /zroot/jails/Proton/dev/shm tmpfs rw";
host.hostname = proton.edu.pl;
ip4.addr = 79.137.56.144;
interface = em0;
securelevel = 3;
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
}
Code:
root@proton:/ # mount -t devfs devfs /dev
mount: devfs: Operation not permitted
root@proton:/ # mount -t tmpfs tmpfs /tmp
mount: tmpfs: Operation not permitted
root@proton:/ #
Thanks !