]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mount: append inverting options for mount.<type> on "users"
authorKarel Zak <kzak@redhat.com>
Thu, 27 Oct 2016 13:30:20 +0000 (15:30 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Oct 2016 13:30:20 +0000 (15:30 +0200)
commit3c4a3de0fcb8f21bffacfd8bdc3d6fbd683c71f5
tree844de3ef1df287118da9c81eeddf339c12844be5
parenta50c849007f02ccb4bd15107da53f27c8ce9b41c
mount: append inverting options for mount.<type> on "users"

If you call mount(8) as root, then we need to append inverting options
(if specified by fstab) for "user" and "users" to /sbin/mount.<type>
command line, because for UID=0 mount.nfs follows command line rather
than the fstab setting.

This has been originally implemented by commit
a4c0cc75ff9744299f108c259efab1bd30c8007a for the old mount(8). The
same feature is supported by libmount, unfortunately for "user" only.
We need the same also for "users" to be backwardly compatible.

Addresses: https://github.com/karelzak/util-linux/issues/368
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_mount.c