Hi,

I am trying to add lxc.shmmax as a configuration option for lxc-execute, 
so the container would have desired shmmax setting.
I run lxc-execute as a regular user and setuid root. When trying to open 
/proc/sys/kernel/shmmax for write in lxc_setup(), I got "permission 
denied". I checked that all the capabilities are up in PERMITTED and 
EFFECTIVE set. Does anyone know the reason for not being able to write 
to /proc/sys/kernel/shmmax? I can work around this problem by setting 
the euid to 0 before the open/write, but I would like to understand the 
permission issue.

Thanks.

Jian


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to