]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: fix the comment about which namespaces outer_child is in
authorLuke T. Shumaker <lukeshu@parabola.nu>
Thu, 22 Aug 2024 04:50:16 +0000 (22:50 -0600)
committerLuke T. Shumaker <lukeshu@parabola.nu>
Sat, 7 Sep 2024 00:33:50 +0000 (18:33 -0600)
commitcde9210efd26854c849dfb60a784d9c1aa098b7c
tree5586f597eb759b1dd1192867b3eb6720909b4270
parent5573e067d0e0871ed404e4b7fe420b15765884d0
nspawn: fix the comment about which namespaces outer_child is in

The comment says that it is still in the host's CLONE_NEWUSER namespace,
which is not true if !arg_privileged.  Also, it says that the CLONE_NEWNS
namespace was created by clone(), but if !arg_privileged then it was
actually created by nsresource_allocate_userns() and switched into by
setns().  Fix those inaccuracies.

When trying to word it clearly, there are enough commas and nested clauses
that I think it's clearer to break it into a list/table.
src/nspawn/nspawn.c