From ae4452ab988c6bd69251c7302582cec255b5a884 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 20 Jul 2019 23:50:50 +0200 Subject: [PATCH] namespaces.7: Note initial values of hostname and domainname in a new UTS namespace Signed-off-by: Michael Kerrisk --- man7/namespaces.7 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/man7/namespaces.7 b/man7/namespaces.7 index 46264ef7d..ffc168493 100644 --- a/man7/namespaces.7 +++ b/man7/namespaces.7 @@ -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.