FreeBSD: jail can not set security.jail.sysvipc_allowed [closed]
Solution found. The following does work for me. On the host, do:
root@host# jls JID IP Address Hostname Path 3 - some.jail /usr/jails/somejail
Find the correct JID, 3 in my example. Then, on the host, issue:
jail -m jid=3 allow.sysvipc=1
There are some new features for jail in special granularity, we need allow change sysvipc_allowed for each jail put this in /etc/rc.conf:
jail_example_parameters="allow.sysvipc=1"
I found the problem after my teammate's help.
Because I use /etc/jail.conf, I have to add a line "allow.sysvipc" to enable system share memory.
in host machine,
/etc/sysctl.conf security.jail.sysvipc_allowed=1 /etc/rc.conf jail_sysvipc_allow="YES" (DO NOT have to do this, remove it)