]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace-util: introduce helper for combining unshare() + MS_SLAVE remount
authorLennart Poettering <lennart@poettering.net>
Sun, 2 Feb 2020 17:56:12 +0000 (18:56 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Jul 2020 09:20:42 +0000 (11:20 +0200)
commite2ec9c4d3abf49e95565574214f8979d819e3f48
treea181ae36c1b239549e324186c0c80a03a39dc77f
parentcda667722c2218cf1a0185284d2a87f8a25f1b2d
namespace-util: introduce helper for combining unshare() + MS_SLAVE remount

We have multiple places we do these two non-trivial operations together,
let's introduce a unified helper for doing both at once.
src/basic/namespace-util.c
src/basic/namespace-util.h
src/core/machine-id-setup.c
src/shared/tests.c
src/test/test-udev.c