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>
Tue, 20 Nov 2018 18:44:39 +0000 (18:44 +0000)
commit33a0da745ecd5f8ed1a59a7487dd372f7c8063d7
tree1723e1f40622f15b244b9c39b7712982e9064e9c
parent3f97beff9705dede0a2af64a1bbbe20bcc5a9e63
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