]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
namespaces.7: Note initial values of hostname and domainname in a new UTS namespace
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 20 Jul 2019 21:50:50 +0000 (23:50 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 20 Jul 2019 21:50:50 +0000 (23:50 +0200)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man7/namespaces.7

index 46264ef7da74b2c7e93a4aa0abdf96a24da00418..ffc16849354f969b5d425d942a09eb31c22662c3 100644 (file)
@@ -418,6 +418,16 @@ and can be retrieved using
 and
 .BR getdomainname (2).
 .PP
+.PP
+When a process creates a new UTS namespace using
+.BR clone (2)
+or
+.BR unshare (2)
+with the
+.BR CLONE_NEWUTS
+flag, the hostname and domain of the new UTS namespace are copied
+from the corresponding values in the caller's UTS namespace.
+.PP
 Use of UTS namespaces requires a kernel that is configured with the
 .B CONFIG_UTS_NS
 option.