Feature

CageFS vs. Linux Namespaces and cgroup v2: How Modern Hosting Isolation Really Works (2026)

Back to Blog
Managing servers the hard way? Panelica gives you isolated hosting, built-in Docker and AI-assisted management.
Start free

Tenant isolation is the single most important security property of any shared or multi-tenant hosting platform. If one customer can read another customer's files, see their processes, or starve the server of CPU and memory, the entire platform fails. For over a decade the reference answer in the cPanel world has been CloudLinux CageFS. Today, a newer model built directly on the Linux kernel - namespaces plus cgroup v2 - has become the foundation that Docker, Podman, and modern control panels rely on. This article compares the two with detailed diagrams, corrects outdated assumptions, and explains which fits a modern platform.

Key takeaways

  • CageFS gives each user a filtered, private view of a shared system - excellent file and process-visibility isolation, but coupled to the CloudLinux kernel and LVE.
  • Namespaces + cgroup v2 give each user a genuinely independent mini-system (own process tree, mounts, network) on any modern stock kernel - the same model Docker and Podman use.
  • For a platform built today, the native kernel stack is broader and more future-proof. Panelica is built on it.

The core difference in one picture

CageFS filters a shared environment so users do not see each other. Full namespacing gives each user a separate environment so the other user effectively does not exist. The diagrams below make this concrete.

CageFS architecture: filtered views on a shared kernel Three users each receive a private filesystem and private proc view through a CageFS filter layer, but all run on one shared CloudLinux kernel with LVE for resource limits. CageFS: Filtered Views on a Shared Kernel User A (cage) private /home/a private /proc (own PIDs) filtered /etc, /bin shared network stack User B (cage) private /home/b private /proc (own PIDs) filtered /etc, /bin shared network stack User C (cage) private /home/c private /proc (own PIDs) filtered /etc, /bin shared network stack CageFS filter layer (bind mounts + mount & PID namespace) Hides other users - one global network, one process scheduler underneath Single Shared Linux Kernel - CloudLinux Resource limits via LVE (Lightweight Virtual Environment) / cgroup v2 on CL10 Physical / Virtual Server Hardware
Figure 1 - CageFS isolates by filtering a shared system. Users cannot see each other, but they share one kernel, one scheduler, and one network stack.
Linux namespaces and cgroup v2 architecture Each user runs in an independent set of namespaces with its own PID 1, mount table, network stack, IPC, UTS and user mapping, with cgroup v2 enforcing CPU, memory, IO and process limits on a stock kernel. Linux Namespaces + cgroup v2: Independent Mini-Systems User A namespace set PID ns - own PID 1 tree Mount ns - own filesystem Network ns - own IPs/firewall IPC ns - own shared memory UTS ns - own hostname User ns - root=unprivileged a self-contained mini-system User B namespace set PID ns - own PID 1 tree Mount ns - own filesystem Network ns - own IPs/firewall IPC ns - own shared memory UTS ns - own hostname User ns - root=unprivileged a self-contained mini-system User C namespace set PID ns - own PID 1 tree Mount ns - own filesystem Network ns - own IPs/firewall IPC ns - own shared memory UTS ns - own hostname User ns - root=unprivileged a self-contained mini-system cgroup v2 - native kernel resource control CPU quotas - Memory + swap - Block I/O throttling - PID/thread limits, enforced per user Hardening: seccomp syscall filtering + AppArmor / SELinux + capabilities drop Standard Linux Kernel - any distro (AlmaLinux, Rocky, Ubuntu, Debian)
Figure 2 - Namespaces give each user an independent environment. cgroup v2 enforces resources natively, and seccomp plus mandatory access control harden the boundary - all on a stock kernel.

What CageFS actually does

CageFS is a virtualized filesystem and a set of tools that lock each user into their own cage. A common misconception is that CageFS is just an advanced chroot. That was closer to the truth years ago, but modern CageFS is more. Under the hood it uses Linux bind mounts and mount namespaces to build a private filesystem view for every user, and it provides each user with a private /proc, so a user only sees their own processes.

In practice, a caged user sees only themselves and system accounts in /etc/passwd, cannot read another customer's home directory, cannot read sensitive server configuration, and only sees their own processes. This is genuinely strong file and process-visibility isolation, and it is mature, battle-tested, and easy to operate. Its limits are two: it is tightly coupled to the CloudLinux kernel and LVE for resource limits, and by design its goal is "users should not see each other" rather than "each user gets a full, independent system" - so there is no separate network stack or independent PID 1 process tree per user.

What Linux namespaces and cgroup v2 do

Namespaces are a native Linux kernel feature. Instead of filtering what a user can see, the kernel gives each workload its own independent instance of a global resource: its own process tree (PID), mount table (Mount), network interfaces and firewall (Network), IPC objects, hostname (UTS), UID/GID mapping (User), and cgroup view. This is the exact model Docker and Podman use, which is why billions of containers run on it in production.

Resource control is handled natively by cgroup v2: CPU shares and quotas, memory and swap limits, block I/O throttling, and process/thread caps. cgroup v2 is no longer the future - it is the default on RHEL 9 and 10, AlmaLinux and Rocky 9 and 10, Ubuntu 22.04 and later, and Debian 12 and later. Even CloudLinux itself now supports cgroup v2 across CloudLinux 8, 9, and 10, defaulting to it on new CloudLinux 10 installs. The industry has converged on this stack.

Correcting the outdated comparison

Several claims about this topic are repeated often but are no longer accurate:

  • "CageFS has no PID isolation." Outdated - modern CageFS provides a private /proc, so users do not see each other's processes.
  • "CageFS is just chroot." Outdated - it uses mount namespaces and bind mounts, not a plain chroot.
  • "CloudLinux only does cgroup v1 / LVE." Outdated - CloudLinux now supports cgroup v2 and defaults to it on CloudLinux 10.

The honest, current distinction is narrower: CageFS gives excellent file and process-visibility isolation but is coupled to the CloudLinux kernel and LVE, and by design does not give each user full network isolation or an independent process tree from PID 1. The native namespace approach does, and it runs on any modern stock kernel.

The foundation question: who builds and controls it?

Beneath the feature checklist lies a deeper question: who actually owns, builds and maintains the isolation technology your platform depends on?

Who builds and controls the isolation foundation A vendor-locked cage is owned by a single company and runs only on that vendor's kernel, while cgroup and namespaces are part of the Linux kernel itself, maintained by the worldwide kernel community and trusted by the entire cloud industry. Panelica builds on the latter. Who Builds and Controls the Foundation? A vendor-locked cage Built and controlled by one company Runs only on that vendor's own kernel Roadmap, support and pricing set by a single organization If they change direction, you inherit the consequences Single point of dependency Linux kernel primitives cgroup + namespaces Part of the Linux kernel itself Maintained by the worldwide kernel developer community Ships by default in every distribution Trusted by the largest cloud platforms and the entire container ecosystem Owned by no single vendor Panelica builds on the right-hand foundation Not a bet on one company's roadmap - a bet on Linux itself, going wherever Linux goes
Figure 3 - The strategic difference: depending on a single vendor versus building on primitives that are part of Linux itself.

A vendor-locked cage is created and controlled by a single company and a single team, and it only runs on that vendor's own kernel build. Your platform's security roadmap, compatibility, long-term support and pricing all follow the decisions of that one organization.

cgroup and namespaces are different in kind. They are not a product from one vendor - they are part of the Linux kernel itself, designed, reviewed and maintained by the worldwide community of Linux kernel developers, and shipped by default in every Linux distribution. They are the very same primitives the largest cloud platforms and the entire container ecosystem run on, every day, at massive scale. Building on them means building on the most scrutinized and most widely deployed isolation technology in existence - owned by no single vendor, and going wherever Linux goes. That is the strategic reason this foundation is more durable: you are not betting on one company's roadmap, you are betting on Linux.

Feature-by-feature comparison

Capability CageFS (+ LVE) Namespaces + cgroup v2
Filesystem isolationStrong (bind mounts + mount ns)Strong (mount namespace)
Process visibilityPrivate /proc (own processes)Full PID namespace, own PID 1
Network isolationNo - shared network stackYes - per-user network ns
Root isolationLimitedStrong via user namespace
Resource limitsLVE (cgroup v2 on CL10)Native cgroup v2
Kernel dependencyCloudLinux kernel requiredAny modern stock kernel
Container modelPartialSame base as Docker/Podman
Performance overheadUnder 1% typicalUnder 1% typical

Performance

Both approaches are fast. Neither is a virtual machine and neither emulates hardware - they share the host kernel directly, so overhead is typically well under one percent for most workloads. Isolation strength here does not come at the cost of meaningful performance, which is why containers replaced heavier virtualization for so many use cases.

Isolation strength ranking

Isolation strength ranking from strongest to weakest From strongest to weakest: namespaces plus cgroup v2 plus seccomp and mandatory access control; namespaces plus cgroup v2; CageFS plus LVE; classic chroot; no isolation. Isolation Strength: Strongest to Weakest Namespaces + cgroup v2 + seccomp + MAC Namespaces + cgroup v2 CageFS + LVE Classic chroot No isolation The top tier combines independent process, mount, network, user and resource isolation with syscall filtering and mandatory access control, on a stock kernel.
Figure 4 - Layering seccomp and AppArmor/SELinux on top of namespaces and cgroup v2 produces the strongest practical isolation.

How Panelica approaches isolation

Panelica is engineered directly on these Linux kernel primitives - the same foundation the entire cloud industry trusts - rather than on a vendor-locked filesystem cage tied to one company's kernel. That deliberate choice is why its isolation is both strong today and durable for the long term: it inherits every security improvement the Linux kernel ships, and it depends on no single vendor's roadmap. Its architecture combines five defense-in-depth layers, illustrated below.

Panelica five-layer isolation architecture Panelica layers cgroup v2 resource limits, Linux PID and mount namespaces, SSH chroot jails, per-user per-version PHP-FPM pools, and strict Unix permission and UID GID isolation. Panelica - Five-Layer Isolation Layer 1 - cgroup v2: per-user CPU, memory, I/O and PID limits Layer 2 - Linux namespaces (PID + Mount): CageFS-like private environment Layer 3 - SSH chroot jails: SFTP-only and restricted shell users Layer 4 - per-user per-version PHP-FPM: open_basedir + disabled functions Layer 5 - Unix permissions: UID/GID isolation, private 700 home dirs Built on the standard kernel - identical across AlmaLinux, Rocky, Ubuntu and Debian, with no special kernel required.
Figure 5 - Panelica's defense-in-depth stack. Because it runs on the standard Linux kernel, it inherits every future kernel security improvement automatically.

Which is better for a modern hosting platform

If you operate inside the existing CloudLinux and cPanel ecosystem, CageFS plus LVE is a pragmatic, mature, well-supported choice, and CloudLinux continues to invest in it - including per-site isolation that separates websites within a single account. If you are building a new hosting platform from the ground up, the stronger and more future-proof foundation is the kernel's own namespaces and cgroup v2, hardened with seccomp and mandatory access control. It delivers independent process, mount, network, user and resource isolation on a stock kernel, with no dependency on a vendor-specific kernel build.

Frequently asked questions

Is CageFS the same as a Docker container?

No. Both use Linux namespaces, but CageFS focuses on filesystem and process-visibility isolation on a shared CloudLinux kernel, while a Docker container adds full network, PID and user namespace isolation plus seccomp and capability restrictions. The container model isolates more dimensions.

Does CageFS isolate network traffic between users?

No. CageFS users share one network stack. Per-user network isolation requires a network namespace, which is part of the namespaces plus cgroup v2 model.

Do namespaces and cgroup v2 require CloudLinux?

No. They are built into the standard Linux kernel and work on AlmaLinux, Rocky, Ubuntu and Debian without any vendor-specific kernel. CageFS, by contrast, requires the CloudLinux kernel.

Is there a performance penalty for namespace isolation?

No meaningful penalty. Namespaces and cgroups share the host kernel directly with no emulation, so overhead is typically well under one percent.

Which approach does Panelica use?

Panelica uses native Linux namespaces and cgroup v2 as the core of a five-layer isolation architecture, hardened with SSH chroot jails, per-user PHP-FPM pools and strict Unix permissions, on the standard kernel.

Conclusion

A vendor-locked cage is mature and effective within its own ecosystem, and it has improved over the years. But it remains the product of a single vendor, tied to that vendor's kernel. Native Linux namespaces and cgroup v2 are part of Linux itself - the most scrutinized and most widely deployed isolation technology in the world - hardened further with seccomp and mandatory access control. That is the foundation Panelica is deliberately built on: as solid, as trusted and as future-proof as Linux itself, and the same foundation that runs the world's container workloads.

Security-first hosting panel

Run your servers on a modern panel.

Panelica is a modern, security-first hosting panel — isolated services, built-in Docker and AI-assisted management, with one-click migration from any panel.

Zero-downtime migration Fully isolated services Cancel anytime
Share:
No monthly renewals.