* [PATCH] man/man2/clone.2: Document CLONE_NEWPID and CLONE_NEWUSER flag
@ 2025-04-20 19:16 devhoodit
2025-05-01 21:30 ` Alejandro Colomar
0 siblings, 1 reply; 4+ messages in thread
From: devhoodit @ 2025-04-20 19:16 UTC (permalink / raw)
To: alx; +Cc: linux-man, linux-api, devhoodit, Carlos O'Donell,
Andrew Morton
CLONE_NEWPID and CLONE_PARENT can be used together, but not CLONE_THREAD. Similarly, CLONE_NEWUSER and CLONE_PARENT can be used together, but not CLONE_THREAD.
This was discussed here: <https://lore.kernel.org/linux-man/06febfb3-e2e2-4363-bc34-83a07692144f@redhat.com/T/>
Relevant code: <https://github.com/torvalds/linux/blob/219d54332a09e8d8741c1e1982f5eae56099de85/kernel/fork.c#L1815>
Cc: Carlos O'Donell <carlos@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: devhoodit <devhoodit@gmail.com>
---
man/man2/clone.2 | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/man/man2/clone.2 b/man/man2/clone.2
index 1b74e4c92..b9561125a 100644
--- a/man/man2/clone.2
+++ b/man/man2/clone.2
@@ -776,9 +776,7 @@ .SS The flags mask
no privileges are needed to create a user namespace.
.IP
This flag can't be specified in conjunction with
-.B CLONE_THREAD
-or
-.BR CLONE_PARENT .
+.BR CLONE_THREAD .
For security reasons,
.\" commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
.\" https://lwn.net/Articles/543273/
@@ -1319,11 +1317,10 @@ .SH ERRORS
mask.
.TP
.B EINVAL
+Both
.B CLONE_NEWPID
-and one (or both) of
+and
.B CLONE_THREAD
-or
-.B CLONE_PARENT
were specified in the
.I flags
mask.
--
2.49.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] man/man2/clone.2: Document CLONE_NEWPID and CLONE_NEWUSER flag
2025-04-20 19:16 [PATCH] man/man2/clone.2: Document CLONE_NEWPID and CLONE_NEWUSER flag devhoodit
@ 2025-05-01 21:30 ` Alejandro Colomar
2025-10-29 9:00 ` hoodit dev
0 siblings, 1 reply; 4+ messages in thread
From: Alejandro Colomar @ 2025-05-01 21:30 UTC (permalink / raw)
To: devhoodit; +Cc: linux-man, linux-api, Carlos O'Donell, Andrew Morton
[-- Attachment #1: Type: text/plain, Size: 1580 bytes --]
Hi Carlos,
On Mon, Apr 21, 2025 at 04:16:03AM +0900, devhoodit wrote:
> CLONE_NEWPID and CLONE_PARENT can be used together, but not CLONE_THREAD. Similarly, CLONE_NEWUSER and CLONE_PARENT can be used together, but not CLONE_THREAD.
> This was discussed here: <https://lore.kernel.org/linux-man/06febfb3-e2e2-4363-bc34-83a07692144f@redhat.com/T/>
> Relevant code: <https://github.com/torvalds/linux/blob/219d54332a09e8d8741c1e1982f5eae56099de85/kernel/fork.c#L1815>
>
> Cc: Carlos O'Donell <carlos@redhat.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Signed-off-by: devhoodit <devhoodit@gmail.com>
Could you please review this patch?
Have a lovely night!
Alex
> ---
> man/man2/clone.2 | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/man/man2/clone.2 b/man/man2/clone.2
> index 1b74e4c92..b9561125a 100644
> --- a/man/man2/clone.2
> +++ b/man/man2/clone.2
> @@ -776,9 +776,7 @@ .SS The flags mask
> no privileges are needed to create a user namespace.
> .IP
> This flag can't be specified in conjunction with
> -.B CLONE_THREAD
> -or
> -.BR CLONE_PARENT .
> +.BR CLONE_THREAD .
> For security reasons,
> .\" commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
> .\" https://lwn.net/Articles/543273/
> @@ -1319,11 +1317,10 @@ .SH ERRORS
> mask.
> .TP
> .B EINVAL
> +Both
> .B CLONE_NEWPID
> -and one (or both) of
> +and
> .B CLONE_THREAD
> -or
> -.B CLONE_PARENT
> were specified in the
> .I flags
> mask.
> --
> 2.49.0
>
--
<https://www.alejandro-colomar.es/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] man/man2/clone.2: Document CLONE_NEWPID and CLONE_NEWUSER flag
2025-05-01 21:30 ` Alejandro Colomar
@ 2025-10-29 9:00 ` hoodit dev
2025-11-12 11:23 ` Alejandro Colomar
0 siblings, 1 reply; 4+ messages in thread
From: hoodit dev @ 2025-10-29 9:00 UTC (permalink / raw)
To: Alejandro Colomar, Carlos O'Donell
Cc: linux-man, linux-api, Andrew Morton
Hi, Alejandro Colomar and Carlos
Just a friendly ping to check if you had a chance to review this patch.
Thanks
2025년 5월 2일 (금) 오전 6:30, Alejandro Colomar <alx@kernel.org>님이 작성:
>
> Hi Carlos,
>
> On Mon, Apr 21, 2025 at 04:16:03AM +0900, devhoodit wrote:
> > CLONE_NEWPID and CLONE_PARENT can be used together, but not CLONE_THREAD. Similarly, CLONE_NEWUSER and CLONE_PARENT can be used together, but not CLONE_THREAD.
> > This was discussed here: <https://lore.kernel.org/linux-man/06febfb3-e2e2-4363-bc34-83a07692144f@redhat.com/T/>
> > Relevant code: <https://github.com/torvalds/linux/blob/219d54332a09e8d8741c1e1982f5eae56099de85/kernel/fork.c#L1815>
> >
> > Cc: Carlos O'Donell <carlos@redhat.com>
> > Cc: Andrew Morton <akpm@linux-foundation.org>
> > Signed-off-by: devhoodit <devhoodit@gmail.com>
>
> Could you please review this patch?
>
>
> Have a lovely night!
> Alex
>
> > ---
> > man/man2/clone.2 | 9 +++------
> > 1 file changed, 3 insertions(+), 6 deletions(-)
> >
> > diff --git a/man/man2/clone.2 b/man/man2/clone.2
> > index 1b74e4c92..b9561125a 100644
> > --- a/man/man2/clone.2
> > +++ b/man/man2/clone.2
> > @@ -776,9 +776,7 @@ .SS The flags mask
> > no privileges are needed to create a user namespace.
> > .IP
> > This flag can't be specified in conjunction with
> > -.B CLONE_THREAD
> > -or
> > -.BR CLONE_PARENT .
> > +.BR CLONE_THREAD .
> > For security reasons,
> > .\" commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
> > .\" https://lwn.net/Articles/543273/
> > @@ -1319,11 +1317,10 @@ .SH ERRORS
> > mask.
> > .TP
> > .B EINVAL
> > +Both
> > .B CLONE_NEWPID
> > -and one (or both) of
> > +and
> > .B CLONE_THREAD
> > -or
> > -.B CLONE_PARENT
> > were specified in the
> > .I flags
> > mask.
> > --
> > 2.49.0
> >
>
> --
> <https://www.alejandro-colomar.es/>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] man/man2/clone.2: Document CLONE_NEWPID and CLONE_NEWUSER flag
2025-10-29 9:00 ` hoodit dev
@ 2025-11-12 11:23 ` Alejandro Colomar
0 siblings, 0 replies; 4+ messages in thread
From: Alejandro Colomar @ 2025-11-12 11:23 UTC (permalink / raw)
To: hoodit dev; +Cc: Carlos O'Donell, linux-man, linux-api, Andrew Morton
[-- Attachment #1: Type: text/plain, Size: 2286 bytes --]
Hi,
On Wed, Oct 29, 2025 at 06:00:50PM +0900, hoodit dev wrote:
> Hi, Alejandro Colomar and Carlos
>
> Just a friendly ping to check if you had a chance to review this patch.
I don't know enough of clone(2) to review this. I'll wait for Carlos's
review.
Have a lovely day!
Alex
>
> Thanks
>
> 2025년 5월 2일 (금) 오전 6:30, Alejandro Colomar <alx@kernel.org>님이 작성:
> >
> > Hi Carlos,
> >
> > On Mon, Apr 21, 2025 at 04:16:03AM +0900, devhoodit wrote:
> > > CLONE_NEWPID and CLONE_PARENT can be used together, but not CLONE_THREAD. Similarly, CLONE_NEWUSER and CLONE_PARENT can be used together, but not CLONE_THREAD.
> > > This was discussed here: <https://lore.kernel.org/linux-man/06febfb3-e2e2-4363-bc34-83a07692144f@redhat.com/T/>
> > > Relevant code: <https://github.com/torvalds/linux/blob/219d54332a09e8d8741c1e1982f5eae56099de85/kernel/fork.c#L1815>
> > >
> > > Cc: Carlos O'Donell <carlos@redhat.com>
> > > Cc: Andrew Morton <akpm@linux-foundation.org>
> > > Signed-off-by: devhoodit <devhoodit@gmail.com>
> >
> > Could you please review this patch?
> >
> >
> > Have a lovely night!
> > Alex
> >
> > > ---
> > > man/man2/clone.2 | 9 +++------
> > > 1 file changed, 3 insertions(+), 6 deletions(-)
> > >
> > > diff --git a/man/man2/clone.2 b/man/man2/clone.2
> > > index 1b74e4c92..b9561125a 100644
> > > --- a/man/man2/clone.2
> > > +++ b/man/man2/clone.2
> > > @@ -776,9 +776,7 @@ .SS The flags mask
> > > no privileges are needed to create a user namespace.
> > > .IP
> > > This flag can't be specified in conjunction with
> > > -.B CLONE_THREAD
> > > -or
> > > -.BR CLONE_PARENT .
> > > +.BR CLONE_THREAD .
> > > For security reasons,
> > > .\" commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
> > > .\" https://lwn.net/Articles/543273/
> > > @@ -1319,11 +1317,10 @@ .SH ERRORS
> > > mask.
> > > .TP
> > > .B EINVAL
> > > +Both
> > > .B CLONE_NEWPID
> > > -and one (or both) of
> > > +and
> > > .B CLONE_THREAD
> > > -or
> > > -.B CLONE_PARENT
> > > were specified in the
> > > .I flags
> > > mask.
> > > --
> > > 2.49.0
> > >
> >
> > --
> > <https://www.alejandro-colomar.es/>
>
--
<https://www.alejandro-colomar.es>
Use port 80 (that is, <...:80/>).
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-11-12 11:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-20 19:16 [PATCH] man/man2/clone.2: Document CLONE_NEWPID and CLONE_NEWUSER flag devhoodit
2025-05-01 21:30 ` Alejandro Colomar
2025-10-29 9:00 ` hoodit dev
2025-11-12 11:23 ` Alejandro Colomar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox