]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount-util: keep fd to /proc/self/mountinfo continously open in umount_recursive()
authorLennart Poettering <lennart@poettering.net>
Tue, 16 May 2023 13:52:33 +0000 (15:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 May 2023 08:26:51 +0000 (10:26 +0200)
commit890c14e343e028d55d96716baae14aaf1e74a467
tree9794798f5313fe8006c043759ca2c3e580058cb1
parent89572df859a14682848eb4946c174047878c1db9
mount-util: keep fd to /proc/self/mountinfo continously open in umount_recursive()

That way, if we end up unmounting /proc/ in our loop we can still
operate correctly, since we don't have to go through /proc/ again to
open the mount table again.
src/shared/mount-util.c