]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount-util: move opening of /proc/self/mountinfo into bind_remount_one_with_mountinfo() 21077/head
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Oct 2021 21:27:04 +0000 (23:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Oct 2021 08:41:26 +0000 (10:41 +0200)
commit0289948eb4b22c01fe27e708056e6daaa719b9ae
tree16b54485ec62efb94c8858fd5b360ec158c2e732
parent874052c5014e774a9c9ca86149c724a7440d7094
mount-util: move opening of /proc/self/mountinfo into bind_remount_one_with_mountinfo()

Let's move things around a bit, and open /proc/self/mountinfo if needed
inside of bind_remount_one_with_mountinfo(). That way bind_remount_one()
can become a superthin inline wrapper around
bind_remount_one_with_mountinfo(). Main benefit is that we don't even
have to open /p/s/mi in case mount_setattr() actually worked for us.
src/shared/mount-util.c
src/shared/mount-util.h