4 ms·
Does anyone have any good resources on how Linux LXC compares to BSD Jails from a security perspective? I've long been a fan of BSD jails because of how simple
by ComputerGuru 15y ago
Does anyone have any good resources on how Linux LXC compares to BSD Jails from a security perspective? I've long been a fan of BSD jails because of how simple the security model is to understand, and how secure they've been in practice. Jail has long been a killer feature for BSD and very, very good reason to use a BSD-derivative for web servers, etc. as you can run each and every service that has the potential to be compromised in its own jail to minimize the overall risk; whereas the best Linux had to offer has traditionally been a chroot'd environment, which while good, has absolutely nothing on a BSD jail.
I'd imagine that LXC has the potential to change that, though I presume it'll take some time for a) adoption to increase and b) for it to prove itself after that.
- zobzu 15y agoLXC is just a set of script/interface to Linux's namespaces. Namespaces is what is actually used. There are disk namespaces, network, pid, etc. Those are not very widely tested albeit supposed to be relatively secure. FreeBSD jail provides a all-in-one integration instead. LXC provides the glue to achieve similar integration. There is also rsbac_jail which provides an integration more similar to what FreeBSD does. The major issue with LXC so far has been that it's not well integrated/easy to use.
- jws 15y agoThe major issue with LXC so far has been that it's not well integrated/easy to use. That's a bit of an understatement. LXC is to namespaces as "tc" is to traffic shaping. It should be replaced.
- zobzu 15y agoi didn't want to be that blunt ;-)
- danellis 15y agoHow is that so when the article says "NOTE: Until we have user namespaces implemented in the kernel and used by the LXC we will NOT say that LXC is root safe"?
- zobzu 15y agoa root in a namespace is a root in a namespace. if its a fs namespace, can't chroot up. if its also a network namespace, can't use network resources that aren't allowed by the namespace. and so on. but, a regular user can't create a namespace with root in it. that's what's missing for example. Note that, again, RSBAC does support fully virtual users for example (akin to namespaces for users)