namespaces.7: Note initial values of hostname and domainname in a new UTS namespace

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2019-07-20 23:50:50 +02:00
parent ed9e645a84
commit ae4452ab98
1 changed files with 10 additions and 0 deletions

View 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.