News for hackers. Stuff that matters.
Re:Understanding and Hardening Linux Containers [pdf] by nisa on Wednesday April 20, 2016 @10:12PM (#11539173)
TL;DR: Pay attention to arcane details or don't use containers for security related stuff. Also grsecurity.

Honest question: Are illumos zones or FreeBSD jails better designed or is just nobody looking for kernel bugs there? From a usability perspective both win (IMHO) against this Linux mess.

This document is really great through.

Re:Understanding and Hardening Linux Containers [pdf] by dyn on Wednesday April 20, 2016 @11:28PM (#11539473)
Author of the paper here. Thanks. As for Jails and Illumos, I would be willing to bet it's people not looking, but I haven't looked, so I can't really say. I agree it's kind of a mess, but it's getting better!
Re:Understanding and Hardening Linux Containers [pdf] by Annatar on Thursday April 21, 2016 @06:41AM (#11540913)
You would lose that bet so fast your head would be both spinning and smoking: zones have been hardened and worked on for enterprises since 2006, and in ten years have had three known vulnerabilities, the last two having already been fixed in illumos (and not exploitable without being able to be explicitly run by a user inside of a hypervisor).

As Bryan Catrill has said in one of his talks:

"we walked the trail if tears since our customers were very large companies; if they had a problem, we had a problem!"

The illumos and smartos mailing lists are hyperactive, with bugs being fixed, and new functionality added, which even Oracle Solaris doesn't have -- just subscribe to those two mailing lists and see for yourself. I warn you in advance: be prepared to be buried under the vortex of e-mails.

Re:Understanding and Hardening Linux Containers [pdf] by droopybuns on Thursday April 21, 2016 @08:19AM (#11541448)
Invoking the Trail of Tears to describe development hardship is, I think, inappropriate. Wish that guy would be a bit more cautious with his metaphors.
Re:Understanding and Hardening Linux Containers [pdf] by solarengineer on Thursday April 21, 2016 @08:47AM (#11541640)
Given that you have affixed your name and have now heard of Jails and of Illumos (and SmartOS), you may want to consider amending your paper to state as such.

Also, Illumos was forked off Solaris, and I'm sure that you know of Solaris' security.

Looking forward to your amendment and revised paper.

Re:Understanding and Hardening Linux Containers [pdf] by ktzar on Thursday April 21, 2016 @02:43AM (#11540105)
Is there a chance a repo with a .md version or an epub can be shared? It's quite hard to read a 100+ PDF document without printing it.
Re:Understanding and Hardening Linux Containers [pdf] by voidz on Thursday April 21, 2016 @06:02AM (#11540758)
I'd like this too. An .epub would be nice for e-ink readers like Pocketbook, Kobo, and Kindle.
Re:Understanding and Hardening Linux Containers [pdf] by voidz on Thursday April 21, 2016 @06:08AM (#11540768)
Is it possible to get notified (via email) when this paper has been updated?
Re:Understanding and Hardening Linux Containers [pdf] by X86BSD on Wednesday April 20, 2016 @11:37PM (#11539506)
My username gives away my bias however, I think you will find Jails and the work Joyent/Illumos have done with containers, to be actually engineered secure from the getgo. Linux, well, I think it's obvious the route Linux took. And none of their "container" solutions were ever designed with security as the starting point. It was always bolted on as an after thought.

Trust me people have been looking for kernel bugs in FreeBSD to exploit jails since it was created. The record their speaks for itself. It's not a lack of eyeballs.

Re:Understanding and Hardening Linux Containers [pdf] by phaemon on Thursday April 21, 2016 @04:29AM (#11540430)
Jails are a powerful tool, but they are not a security panacea. While it is not possible for a jailed process to break out on its own, there are several ways in which an unprivileged user outside the jail can cooperate with a privileged user inside the jail to obtain elevated privileges in the host environment.
Re:Understanding and Hardening Linux Containers [pdf] by floatboth on Thursday April 21, 2016 @07:42AM (#11541247)
Everyone says that, and that's right, but does that situation happen often? A typical "cloud" service like Heroku or Travis CI does NOT give you an unprivileged user outside the jail!
Re:Understanding and Hardening Linux Containers [pdf] by cyphar on Thursday April 21, 2016 @07:48AM (#11541281)
Unless you consider someone who managed to break into a Heroku box but doesn't have root. They spin up a Heroku instance and now you have root. That's a security flaw.