[lxc-users] Setting kernel.shmmax in unprivileged containers.

Tiit Kaeeli kaeeli at quretec.com
Mon Jul 28 13:51:22 UTC 2014


Hi,

I am having a little issue setting kernel.shmmax in LXC unprivileged 
container (lxc=1.0.4-0ubuntu0.1)

In https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1021411
it is stated, that it should be possible since lxc 0.7.5-3ubuntu60
At least there is no information, that it will only apply to privileged 
containers.

I have also tried disabling apparmor and adding
lxc.mount.auto = proc:rw sys:rw
to container conf.

But still
sysctl: permission denied on key 'kernel.shmmax'
At the same time setting for example net.ipv6.conf.all.disable_ipv6 
succeeds!

mount -o remount,rw -t proc /proc /proc
mount: permission denied

/proc/ is owned by nobody.nogroup

What am I missing?


More information about the lxc-users mailing list