]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: (legacy) init regualer mount before propagation
authorKarel Zak <kzak@redhat.com>
Tue, 4 Oct 2022 11:05:27 +0000 (13:05 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 3 Jan 2023 11:58:42 +0000 (12:58 +0100)
commita69d4278bb6556e109f168b5ba4cc41aead9b96c
tree3b3704389b41833e620bfe2592b68c958bb61e44
parentd25e375a81dd5410377055e76f8818a201b117c3
libmount: (legacy) init regualer mount before propagation

We have two ways how mount(2) is used, for propagation-only calls and
regular FS mount. The propagation-only code removes MS_PROPAGATION
flags from main mount options (=optlist), so any later decision about
propagation is impossible. We need to call propagation-only code as
the last thing. (Yes, new FD based mount(8) handles it better.)

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/hook_mount_legacy.c