cgroup
A Linux kernel mechanism for process resource isolation and management that groups a set of processes into a single control group, enabling limits on CPU, memory, and other resources, as well as bulk signal delivery to processes. It is a foundational component of container technology.
Core Facts
Docker implements containerization based on the Linux kernel's cgroups (resource limiting) and namespace (process isolation) mechanisms.
Container technology (represented by Docker) uses the Linux kernel's namespace mechanism to achieve isolation of processes, networks, and file systems, and uses cgroups to limit resource usage such as CPU and memory
Sandbox technology uses operating-system-level isolation mechanisms (such as Linux's seccomp, namespaces, cgroups, or dedicated virtual machines) to restrict process system-call permissions, but its granularity is binary and it is difficult to express business-level policies.
Timeline (last 90 days)
Kernel-level restrictions typically use mechanisms such as seccomp, Landlock, and cgroup to intercept system calls by whitelist or rules when they enter the kernel, making them harder to bypass than application-layer hooks.
Namespaces govern "what you can see" (PID, mount, network, user and other isolation), while cgroups govern "how much you use" (metering and limiting CPU, memory, IO and other resources).
systemd-nspawn is a container management tool shipped with the systemd project that uses Linux namespaces and control groups (cgroups) to isolate processes, filesystems, networking and other dimensions while sharing the kernel with the host.
Containers rely on namespaces and cgroups for logical isolation and still share the host kernel; once a privilege escalation vulnerability appears in the kernel, an attacker may cross container boundaries.
Before running Strata on a rented container, you should check the CPU quota via cat /sys/fs/cgroup/cpu.max and set --pool-workers to a value slightly below the allowed core count
Operating-system-level sandboxes on Linux use seccomp to filter system calls, combined with namespaces to isolate mount and network views, and then cgroups to limit resources.
Cgroups can precisely limit and account for resources such as CPU, memory, and disk I/O for a group of processes.
The cgroup approach provides the most thorough cleanup on Linux, but macOS support is limited; the process group approach has better cross-platform compatibility but is powerless against escaped processes that have already detached from the process group.
Linux's cgroup mechanism can place a group of processes under the same control group and send termination signals to all processes in the group at once, which is equally effective for multi-level subprocess spawning.
The methodology for reverse-engineering sandboxes includes environment probing (reading system information, process lists, kernel versions, and cgroup configurations).
1 more timeline events
All Facts (16)
Docker implements containerization based on the Linux kernel's cgroups (resource limiting) and namespace (process isolation) mechanisms.
90%VerifiedContainer technology (represented by Docker) uses the Linux kernel's namespace mechanism to achieve isolation of processes, networks, and file systems, and uses cgroups to limit resource usage such as CPU and memory
80%VerifiedSandbox technology uses operating-system-level isolation mechanisms (such as Linux's seccomp, namespaces, cgroups, or dedicated virtual machines) to restrict process system-call permissions, but its granularity is binary and it is difficult to express business-level policies.
65%UnverifiedContainers rely on namespaces and cgroups for logical isolation and still share the host kernel; once a privilege escalation vulnerability appears in the kernel, an attacker may cross container boundaries.
60%UnverifiedOperating-system-level sandboxes on Linux use seccomp to filter system calls, combined with namespaces to isolate mount and network views, and then cgroups to limit resources.
60%UnverifiedCgroups can precisely limit and account for resources such as CPU, memory, and disk I/O for a group of processes.
60%UnverifiedContainers rely on Linux's two core mechanisms—Namespace (resource isolation) and Cgroup (resource quota limitation)—combined with Seccomp to filter system calls.
60%UnverifiedKernel-level restrictions typically use mechanisms such as seccomp, Landlock, and cgroup to intercept system calls by whitelist or rules when they enter the kernel, making them harder to bypass than application-layer hooks.
50%UnverifiedNamespaces govern "what you can see" (PID, mount, network, user and other isolation), while cgroups govern "how much you use" (metering and limiting CPU, memory, IO and other resources).
50%Unverifiedsystemd-nspawn is a container management tool shipped with the systemd project that uses Linux namespaces and control groups (cgroups) to isolate processes, filesystems, networking and other dimensions while sharing the kernel with the host.
50%UnverifiedBefore running Strata on a rented container, you should check the CPU quota via cat /sys/fs/cgroup/cpu.max and set --pool-workers to a value slightly below the allowed core count
50%UnverifiedLinux's cgroup mechanism can place a group of processes under the same control group and send termination signals to all processes in the group at once, which is equally effective for multi-level subprocess spawning.
50%UnverifiedThe cgroup approach provides the most thorough cleanup on Linux, but macOS support is limited; the process group approach has better cross-platform compatibility but is powerless against escaped processes that have already detached from the process group.
50%UnverifiedThe methodology for reverse-engineering sandboxes includes environment probing (reading system information, process lists, kernel versions, and cgroup configurations).
50%UnverifiedContainers (Docker/LXC) achieve isolation through namespaces + cgroups, share the host kernel, and incur extremely low performance overhead.
50%UnverifiedLinux的namespace提供PID、Network、Mount、UTS、IPC和User等多种隔离维度,cgroup负责资源限制和计量
50%