2007-08-05 09:37:41

by Michael Kerrisk

[permalink] [raw]
Subject: CLONE_NEWUTS documentation

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?

Cheers,

Michael
--
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7

Want to help with man page maintenance? Grab the latest tarball at
http://www.kernel.org/pub/linux/docs/manpages/
read the HOWTOHELP file and grep the source files for 'FIXME'.


2007-08-05 12:33:27

by Eric W. Biederman

[permalink] [raw]
Subject: Re: CLONE_NEWUTS documentation

Michael Kerrisk <[email protected]> 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.

Eric

2007-08-06 06:38:34

by Michael Kerrisk

[permalink] [raw]
Subject: Re: CLONE_NEWUTS documentation



Eric W. Biederman wrote:
> Michael Kerrisk <[email protected]> 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()?

Cheers,

Michael

--
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7

Want to help with man page maintenance? Grab the latest tarball at
http://www.kernel.org/pub/linux/docs/manpages/
read the HOWTOHELP file and grep the source files for 'FIXME'.

2007-08-06 12:49:25

by Serge E. Hallyn

[permalink] [raw]
Subject: Re: CLONE_NEWUTS documentation

Quoting Michael Kerrisk ([email protected]):
>
>
> Eric W. Biederman wrote:
> > Michael Kerrisk <[email protected]> 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