]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/fork.c: add comment about usage of CLONE_FS flags and namespaces
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Tue, 6 Feb 2018 23:39:34 +0000 (15:39 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Feb 2018 02:32:45 +0000 (18:32 -0800)
commit5b64b0cfbaa27198404f4971cf0fe3dc9eb7c62a
tree23584580585c649e5f8d7a4a629625d621b38e54
parentdfb3fe323b38301aa20e050848eb73786bb0e6b6
kernel/fork.c: add comment about usage of CLONE_FS flags and namespaces

All other places that deals with namespaces have an explanation of why
the restriction is there.

The description added in this commit was based on commit 266d27c23758
("userns: Don't allow CLONE_NEWUSER | CLONE_FS").

Link: http://lkml.kernel.org/r/20171112151637.13258-1-marcos.souza.org@gmail.com
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/fork.c