Difference Between Sysctl and Jail.conf

Status
Not open for further replies.

STREBLO

Patron
Joined
Oct 23, 2015
Messages
245
I was looking to make a jail for a repo using synth and he mentions in the readme putting the folloing in a jail.conf

Code:
enforce_statfs=0
allow.mount
allow.mount.nullfs
allow.mount.tmpfs
allow.mount.devfs


I haven't heard of a jail.conf before. Can these just be added to the sysctl settings in the gui? Or are jail.confs completely different?
 

STREBLO

Patron
Joined
Oct 23, 2015
Messages
245
Sysctls in the gui just change the rc.conf though right? In FreeNAS there's no jail.conf, right?
 
D

dlavigne

Guest
Correct that there is no jail.conf being used by FreeNAS.
 

STREBLO

Patron
Joined
Oct 23, 2015
Messages
245
Correct that there is no jail.conf being used by FreeNAS.
So can I just add this to the sysctls then?

Code:
enforce_statfs=0
allow.mount
allow.mount.nullfs
allow.mount.tmpfs
allow.mount.devfs
 
D

dlavigne

Guest
Yes, but note that the sysctl names are different:

sysctl -a|grep statfs
security.jail.param.enforce_statfs: 0
security.jail.enforce_statfs: 2

sysctl -a | grep allow.mount
security.jail.param.allow.mount.zfs: 0
security.jail.param.allow.mount.tmpfs: 0
security.jail.param.allow.mount.procfs: 0
security.jail.param.allow.mount.nullfs: 0
security.jail.param.allow.mount.fdescfs: 0
security.jail.param.allow.mount.devfs: 0
security.jail.param.allow.mount.: 0
 

STREBLO

Patron
Joined
Oct 23, 2015
Messages
245
Yes, but note that the sysctl names are different:

sysctl -a|grep statfs
security.jail.param.enforce_statfs: 0
security.jail.enforce_statfs: 2

sysctl -a | grep allow.mount
security.jail.param.allow.mount.zfs: 0
security.jail.param.allow.mount.tmpfs: 0
security.jail.param.allow.mount.procfs: 0
security.jail.param.allow.mount.nullfs: 0
security.jail.param.allow.mount.fdescfs: 0
security.jail.param.allow.mount.devfs: 0
security.jail.param.allow.mount.: 0
Thanks!
 
Status
Not open for further replies.
Top