encyclopegia.org

Linux namespaces

Namespaces are a feature of the Linux kernel that partition kernel resources such that one set of processes sees one set of resources, while another set of processes sees a different set of resources. The feature works by assigning the same namespace type to a set of resources and processes, but allowing those namespaces to refer to distinctly isolated environments. This provides the illusion that a process or a process group is the sole user of the system's hardware and software resources. Examples of such resources include process IDs, hostnames, user IDs, file names, network interfaces, and inter-process communication (IPC) mechanisms. Linux namespaces, alongside cgroups (control groups), are the foundational technologies underpinning modern OS-level virtualization and Linux containerization platforms such as Docker, Kubernetes, LXC, and Podman. While cgroups dictate how much of a system's resources a process can use (such as CPU, memory, and disk I/O limits), namespaces dictate what a process is allowed to see and interact with. The term "namespace" is often used to denote a specific type of namespace (e.g., process ID namespace) as well as a particular space of names. A Linux system begins with a single initial namespace of each type, which is shared by all processes.…

Namespaces are a feature of the Linux kernel that partition kernel resources such that one set of processes sees one set of resources, while another set of processes sees a different set of resources. The feature works by assigning the same namespace type to a set of resources and processes, but allowing those namespaces to refer to distinctly isolated environments. This provides the illusion that a process or a process group is the sole user of the system's hardware and software resources. Examples of such resources include process IDs, hostnames, user IDs, file names, network interfaces, and inter-process communication (IPC) mechanisms. Linux namespaces, alongside cgroups (control groups), are the foundational technologies underpinning modern OS-level virtualization and Linux containerization platforms such as Docker, Kubernetes, LXC, and Podman. While cgroups dictate how much of a system's resources a process can use (such as CPU, memory, and disk I/O limits), namespaces dictate what a process is allowed to see and interact with. The term "namespace" is often used to denote a specific type of namespace (e.g., process ID namespace) as well as a particular space of names. A Linux system begins with a single initial namespace of each type, which is shared by all processes. Processes can subsequently create additional namespaces or join existing ones, allowing complex, nested isolation boundaries. Furthermore, the init system systemd uses namespaces to secure system services. Directives such as PrivateNetwork=yes or PrivateTmp=yes in a systemd service file instruct the kernel to spawn the daemon inside isolated network and mount namespaces, respectively. Command-line utilities also make use of these features. The util-linux package includes the unshare command, which allows users to start shells or scripts inside newly created namespaces. An example of utilizing namespaces to create an isolated, unprivileged root-like environment: unshare --map-root-user --fork --pid --mount-proc --root="${chrootdir}" "$@" This command spawns a process in new user, PID, and mount namespaces, effectively acting as a modern, far more secure equivalent to the traditional chroot .

References

No reference rows published for this article.

Cite this article

MLA

"Linux namespaces." encyclopegia.org, 2026, https://encyclopegia.org/wiki/linux-namespaces. Accessed 24 November 2026.

Chicago

"Linux namespaces." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/linux-namespaces.

APA

encyclopegia.org. (2026). Linux namespaces. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/linux-namespaces

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Mangalyam Tantunanena

enwiki · references available

Abhay Manohar Sapre

enwiki · references available

The Grand Babylon Hotel (1916 film)

enwiki · references available

Sarcopoterium

enwiki · references available

Child soldiers in Africa

enwiki · references available

Jerry Wright

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1371385787 · 0.5 · snapshot enwiki-001371385787

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.