Re:Making Containers More Isolated: An Overview of Sandboxed...
by rtempaccount1 on Sunday June 23, 2019 @05:12PM
(#20258701)
So the Docker security team did a lot of work in the early days precisely because people felt that it didn't provide good security isolation.
As to root in a container == host compromise, what makes you say that? Absent a Linux kernel vuln. or mistake when running the container that's generally not easily possible.
(that's not to say that containers should be run as root, they should not, but that it's not necessarily trivial to breakout of one)
Re:Making Containers More Isolated: An Overview of Sandboxed...
by ChrisSD on Sunday June 23, 2019 @05:45PM
(#20258869)
Aye they did a lot of work after people responded to its lack of isolation. My point was that was not a focus initially.
Re:Making Containers More Isolated: An Overview of Sandboxed...
by o-__-o on Wednesday June 26, 2019 @05:37AM
(#20283319)
I remember the days of docker security check and it was just a hollow stub for future improvement.
Re:Making Containers More Isolated: An Overview of Sandboxed...
by Thaxll on Sunday June 23, 2019 @09:08PM
(#20259780)
Root in a container is not unsecure, the user mapping is different between what runs the container and what's running inside.
Re:Making Containers More Isolated: An Overview of Sandboxed...
by ChrisSD on Monday June 24, 2019 @06:46AM
(#20262105)
Again, I was talking about Docker's initial security considerations. I think it wasn't until about 1.10(?) that it got user namespacing.
Re:Making Containers More Isolated: An Overview of Sandboxed...
by supermanfan on Monday June 24, 2019 @08:09PM
(#20269879)
No, actually UID=0 in the container is the same root as the host.
By default there is no user mapping.
The idea was that such a packaged system should be doing all the security things you'd do if running on the bare operating system. So getting root inside a container would be expected to be as devastating as if the host had been compromised. Admittedly many developers didn't get this memo in the beginning.