]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man7/ipc_namespaces.7
All pages: Remove the 5th argument to .TH
[thirdparty/man-pages.git] / man7 / ipc_namespaces.7
CommitLineData
1d36b4e1
MK
1.\" Copyright (c) 2019 by Michael Kerrisk <mtk.manpages@gmail.com>
2.\"
5fbde956 3.\" SPDX-License-Identifier: Linux-man-pages-copyleft
1d36b4e1
MK
4.\"
5.\"
45186a5d 6.TH IPC_NAMESPACES 7 2019-08-02 "Linux man-pages (unreleased)"
1d36b4e1 7.SH NAME
1f294696 8ipc_namespaces \- overview of Linux IPC namespaces
1d36b4e1
MK
9.SH DESCRIPTION
10IPC namespaces isolate certain IPC resources,
11namely, System V IPC objects (see
12.BR sysvipc (7))
13and (since Linux 2.6.30)
14.\" commit 7eafd7c74c3f2e67c27621b987b28397110d643f
15.\" https://lwn.net/Articles/312232/
16POSIX message queues (see
17.BR mq_overview (7)).
18The common characteristic of these IPC mechanisms is that IPC
19objects are identified by mechanisms other than filesystem
20pathnames.
21.PP
22Each IPC namespace has its own set of System V IPC identifiers and
23its own POSIX message queue filesystem.
24Objects created in an IPC namespace are visible to all other processes
25that are members of that namespace,
26but are not visible to processes in other IPC namespaces.
27.PP
28The following
29.I /proc
30interfaces are distinct in each IPC namespace:
31.IP * 3
32The POSIX message queue interfaces in
33.IR /proc/sys/fs/mqueue .
34.IP *
35The System V IPC interfaces in
36.IR /proc/sys/kernel ,
37namely:
38.IR msgmax ,
39.IR msgmnb ,
40.IR msgmni ,
41.IR sem ,
42.IR shmall ,
43.IR shmmax ,
44.IR shmmni ,
45and
46.IR shm_rmid_forced .
47.IP *
48The System V IPC interfaces in
49.IR /proc/sysvipc .
50.PP
51When an IPC namespace is destroyed
52(i.e., when the last process that is a member of the namespace terminates),
53all IPC objects in the namespace are automatically destroyed.
54.PP
55Use of IPC namespaces requires a kernel that is configured with the
56.B CONFIG_IPC_NS
57option.
58.SH SEE ALSO
59.BR nsenter (1),
60.BR unshare (1),
61.BR clone (2),
62.BR setns (2),
63.BR unshare (2),
64.BR mq_overview (7),
65.BR namespaces (7),
66.BR sysvipc (7)