[Lxc-users] centos6 container and root login

olx69 ope-linux at gmx.de
Tue Oct 23 18:17:15 UTC 2012


Am 23.10.2012 20:10, schrieb olx69:
>> in the the lxc container I can do now
>>
>> [root at pgsql ~]# sestatus
>> SELinux status:                 enabled
>> SELinuxfs mount:                /selinux
>> Current mode:                   enforcing
>> Mode from config file:          disabled
>> Policy version:                 24
>> Policy from config file:        targeted
>>
>> which disables selinux obviously.
> ... *not*
>
> Interesting, in the container:
>
> [root at pgsql ~]# setenforce 0
> setenforce:  setenforce() failed
>
> ??? not possible???

Even after more thinking about - do you mean disable SELinux on host? 
This would make sense for me, since the host kernel has SELinux - using 
the same kernel in a disabled container would disable it on host self 
also, probably not intentionally - isn't it?





More information about the lxc-users mailing list