News for hackers. Stuff that matters.
Re:Jails on FreeBSD by vermaden on Friday May 26, 2023 @03:19PM (#36088467)
First of all - the Namespaces and Cgroups on Linux are not about security. They are about features.

FreeBSD Jails provide both secure isolation from the host and also provide the separated network namespace and resources with rctl(8) when needed.

To have Linux containers separated and secured you need additional layer for that - like SELinux or AppArmor. Only then Docker/Podman/other/... Linux containers are isolated and secure.

Regards.

Re:Jails on FreeBSD by icedchai on Friday May 26, 2023 @05:05PM (#36089501)
You're telling those namespace / cgroup features have nothing to do with security? Not in any way, shape, or form? I'm a little skeptical.
Re:Jails on FreeBSD by jmillikin on Friday May 26, 2023 @09:58PM (#36091385)
Namespaces and cgroups provide resource accounting and some limited isolation between trusted workloads. They're not considered a sandbox or security boundary because the processes have full access to the Linux kernel APIs, which are not well-hardened.

To provide a security boundary between Linux processes, it's currently considered best practice to use something like Firecracker or gVisor.

Re:Jails on FreeBSD by icedchai on Saturday May 27, 2023 @01:34PM (#36096554)
I agree containers are more for ease of deployment, not security. But security is about shades of gray… limited isolation is one of those.
Re:Jails on FreeBSD by user6723 on Friday May 26, 2023 @11:15PM (#36091767)
Underrated post.