]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix superblock rw/ro reconfiguration
authorKarel Zak <kzak@redhat.com>
Wed, 5 Apr 2023 19:44:55 +0000 (21:44 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 5 Apr 2023 19:44:55 +0000 (21:44 +0200)
commitc7ffe0cf6b7bdf62db70bd7700d6ed40d9106ba9
treee35708fbd6f1b6df72ad572843d86237fefa22c2
parent7c79eff867b7d41c3fea187e2f07b4a43f01a654
libmount: fix superblock rw/ro reconfiguration

The classic mount(2) defaults to 'rw', but the new API does not reset
superblock to 'rw' if the flag is not explicitly used for
FSCONFIG_CMD_RECONFIGURE.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2180593
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/hook_mount.c