]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix x- options use for non-root users
authorKarel Zak <kzak@redhat.com>
Tue, 28 Jan 2020 09:45:07 +0000 (10:45 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 28 Jan 2020 09:54:33 +0000 (10:54 +0100)
commit88f04bf9e637b14ff5274e4c4981e43ab2c40c2b
tree1995918f546983e12877961d7e66e2f531dac1d4
parente8c21c894e69ba0c72ecf69e8297cb20ec5f9c1e
libmount: fix x- options use for non-root users

libmount returns EPERM for all X- and x- mount options for non-root
users when evaluate X-mount.mkdir. It's bug, we need to be sensitive
to only X-mount.mkdir and only if the target directory is missing.

Addresses: https://github.com/karelzak/util-linux/issues/941
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c
sys-utils/mount.8