Re: CLONE_NEWUTS documentation

From: Serge E. Hallyn
Date: Mon Aug 06 2007 - 08:49:26 EST


Quoting Michael Kerrisk (mtk-manpages@xxxxxxx):
>
>
> Eric W. Biederman wrote:
> > Michael Kerrisk <mtk-manpages@xxxxxxx> writes:
> >
> >> Hello Serge,
> >>
> >> In 2.6.19, your patch to add support for CLONE_NEWUTS was included. Is
> >> there there some for-userland-programmers documentation of this flag
> >> somewhere? Would you be able to send some documentation to me (ideally as
> >> a patch to the clone.2 man page, but otherwise some plain text will do).
> >>
> >> If this flag is also supported for unshare(), then could you please send me
> >> a patch/text for that too?
> >
> > Again a short summary
> >
> > The utsname namespace encapsulates the global kernel identification stored
> > in struct utsname returned from uname(2).
> >
> > It is a very trivial namespace but it allows you to set multiple hostnames
> > and nis domainnames on the same machine.
>
> Thanks Eric.
>
> And a further question: is CLONE_NEWUTS implemented for unshare()?

Yes, it is. And unlike CLONE_FS but like CONE_NEWNS, it has the same
meaning for unshare as for clone.

thanks,
-serge
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/