core: add namespace_fork() helper, that forks, joins a set of namespaces and forks...
authorLennart Poettering <lennart@poettering.net>
Mon, 12 Nov 2018 22:37:13 +0000 (23:37 +0100)
committerMichael Biebl <biebl@debian.org>
Sat, 17 Nov 2018 17:39:21 +0000 (17:39 +0000)
commit57978061a4f4e6b29cf815a23f3833ab38c74b0f
tree5a26bc603039636ff5978c11b0a139d20f11fe9f
parentfcf5c5b2d381669bf7af637d918298f520b7843d
core: add namespace_fork() helper, that forks, joins a set of namespaces and forks again

This helper is useful to ensure pidns/userns joining is properly
executed (as that requires a fork after the setns()). This is
particularly important when it comes to /proc/self/ access or
SCM_CREDENTIALS, but is generally the safer mode of operation.

(cherry picked from commit 27096982798e4f4d1498f9ce75c317b8d3376125)

Gbp-Pq: Name core-add-namespace_fork-helper-that-forks-joins-a-set-of-.patch
src/basic/process-util.c
src/basic/process-util.h