lxc container can power-off host machine
Binary package hint: lxc
Bug related information:
# lsb_release -rd
Description: Ubuntu 10.04.1 LTS
# apt-cache policy lxc
*** 0.7.2-1~10.04~csz1 0
(NEVERMIND if I am using a PPA version: it's the same version you're using in Maverick and I don't think this is causing the issue that I am facing now).
I created a system image by using the tool "lxc-create" and by using the included templates (I even created images myself without this tool, and nothing changes with this issue)
The tool makes all the necessary steps to create the image (debootstrap and so on) and, at the end of the process, it creates a config file suitable for that image.
One of the last rows of the config file is:
same identical problem happens if I comment out this row and I mount /proc myself from /etc/fstab inside the container
The problem arises when I issue the command:
echo b > /proc/sysrq-trigger
In this case the host machine will power-off, and not the container.
It's possible to check what I said, without harming your server, just by running a sync command on the container:
echo s > /proc/sysrq-trigger
and than checking /var/log/messages on the host server. You'll see that the command is intercepted from the host and not from the container.
Right now, I have no idea how to circumvent this issue, and if this problem persist, I feel the security of LXC is heavily compromised.
|visibility:||private → public|
- lxc container can power-off the host machine
+ lxc container can power-off host machine
|Changed in lxc (Ubuntu):|
|status:||Confirmed → Triaged|
|Serge Hallyn (serge-hallyn) wrote : Re: [Bug 645625] Re: lxc container can power-off host machine||#6|