[lxc-devel] set shmmax for container in lxc-execute

J. Xiao jian at linux.vnet.ibm.com
Fri Jul 6 11:56:54 UTC 2012


I checked all the capabilities are up before opening shmmax file.
If I seteuid to 0, the open succeeds. There seems to be a difference 
between having a root euid and a regular user having root capabilities 
in terms of writing to shmmax file.

On 7/5/2012 4:49 PM, Stéphane Graber wrote:
> On 07/05/2012 04:41 PM, J. Xiao wrote:
>> Thanks Stephane for your answer.
>>
>> However, I am running on RedHat, is there a similar file on RedHat I can
>> check?
>
> I don't know RedHat but as far as I know Ubuntu is the only distro
> currently restricting access to /proc in containers. RedHat uses SELinux
> but lxc currently doesn't have any support for it, so it's unlikely to
> be the problem.
>
> Maybe something is dropping some capabilities that are preventing you
> from changing these limits?
>
>







More information about the lxc-devel mailing list