]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-mountpoint-util: run test in private mount namespace
authorLennart Poettering <lennart@poettering.net>
Tue, 20 Oct 2020 12:51:01 +0000 (14:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 21 Oct 2020 07:18:35 +0000 (09:18 +0200)
commitaf918c481864116fdf92eceb3376a014053eaf5f
treefb09cfb70eb0aa323dc328890eaeed3a8f39bd69
parent0393e6a2742c5f4ec2903a700a7f41821cd141f2
test-mountpoint-util: run test in private mount namespace

This creates a private mount namespace for test-mountpint-util, with all
propagation from the host turned off. This gives us the guarantee that
/proc/self/mountinfo remains fixed and constant while we operate,
removing potential races against other unrelated stuff running on the
system that changes the mount table.

Prompted-by: #17050
(I doubt this actually fixes 17050, this is mostly to make sure that we
aren't possibly affected by such races in our test)
src/test/test-mountpoint-util.c