I need to set a privileged container to:
fs.mqueue.msg_max=6000
fs.mqueue.msgsize_max=8192
fs.mqueue.queues_max=512
And I fail. I set the host to those values, and trying to set the container directly says:
echo 6000 > /proc/sys/fs/mqueue/msg_max
bash: /proc/sys/fs/mqueue/msg_max: Read-only file system
I am running a privileged container as root… config as follows:
Ah yeah, we do quite heavily protect /proc in privileged containers due to the very high risk of damage to the host when random sysctls get applied which aren’t properly namespaced.
In this case, you may be able to workaround this with something like:
printf "lxc.mount.auto=\nlxc.mount.auto=proc:rw sys:mixed" | lxc config set NAME raw.lxc