]> git.ipfire.org Git - thirdparty/man-pages.git/commit
setns.2: Fix CLONE_NEWNS restriction info
authorMike Frysinger <vapier@gentoo.org>
Thu, 19 Sep 2019 05:43:42 +0000 (01:43 -0400)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 19 Sep 2019 06:37:45 +0000 (08:37 +0200)
commit5dd76c44497dd43506f79995a8c7f84a105864e4
treecdf892fb2cee6f1b80e061239268aecbdd430acd
parent9914d8bdb832a31992b0c10a0e26980808fd0462
setns.2: Fix CLONE_NEWNS restriction info

Threads are allowed to switch mount namespaces if the filesystem
details aren't being shared.  That's the purpose of the check in
the kernel quoted by the comment:

    if (fs->users != 1)
        return -EINVAL;

It's been this way since the code was originally merged in v3.8.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/setns.2