News for hackers. Stuff that matters.
Re:Subuser turns Docker containers into normal Linux program... by anc84 on Friday February 12, 2016 @07:11AM (#11086669)
I was always taught that Docker is not suitable for securely separating stuff, just for compartmentalisation. Something about running as root iirc?
Re:Subuser turns Docker containers into normal Linux program... by lojack on Friday February 12, 2016 @07:35AM (#11086766)
> Something about running as root iirc?

The daemon runs as root, so your containers are only as secure as the daemon itself.

Re:Subuser turns Docker containers into normal Linux program... by cyphar on Saturday February 13, 2016 @10:43AM (#11094333)
> > Something about running as root iirc?

> The daemon runs as root, so your containers are only as secure as the daemon itself.

This is not correct. The daemon only starts and monitors processes in this case. You can start a process as a different user. You can also use user namespaces to make "root in the container" not root on the host.

Re:Subuser turns Docker containers into normal Linux program... by DannoHung on Friday February 12, 2016 @08:15AM (#11086938)
Nn, misread
Re:Subuser turns Docker containers into normal Linux program... by roddux on Friday February 12, 2016 @07:44AM (#11086799)
You may be thinking about this issue: http://reventlov.com/advisories/using-the-docker-command-to-... -- which incidentally is the first thing that came my mind, too. I'm not familiar with docker, but I'm unsure how subuser could work around this.
Re:Subuser turns Docker containers into normal Linux program... by timthelion on Friday February 12, 2016 @09:46AM (#11087498)
Subuser doesn't work around this issue. As a USER you can become root using docker. However, that doesn't mean that your SUBusers can become root. And that's what you are trying to protect your system from. The "less trusted" code that is running in the subusers.
Re:Subuser turns Docker containers into normal Linux program... by raesene4 on Friday February 12, 2016 @10:22AM (#11087772)
You may be thinking of the lack of user namespacing in Docker. Until v1.10 root in a container was the same user as root outside the container.

This did not automatically lead to allow a contained user to breakout, but made it easier.

In 1.10 user namespacing reduces this risk as the root user in a container can be remapped to another user account outside the container.