summaryrefslogtreecommitdiffstats
path: root/sys-utils/mount.c
diff options
context:
space:
mode:
authorKarel Zak2012-06-14 14:43:21 +0200
committerKarel Zak2012-06-14 14:43:21 +0200
commite26de525e21677c680d87f63e4dafbe4859365bf (patch)
tree1bc03b0ac9f42bbc48bcc142bc79a77b0d02fce8 /sys-utils/mount.c
parentlibmount: don't use nosuid,noexec,nodev for cifs user=foo (diff)
downloadkernel-qcow2-util-linux-e26de525e21677c680d87f63e4dafbe4859365bf.tar.gz
kernel-qcow2-util-linux-e26de525e21677c680d87f63e4dafbe4859365bf.tar.xz
kernel-qcow2-util-linux-e26de525e21677c680d87f63e4dafbe4859365bf.zip
mount: (new) allow sloppy for non-root
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=825836 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/mount.c')
-rw-r--r--sys-utils/mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/mount.c b/sys-utils/mount.c
index 2b8843cc7..9cc2db312 100644
--- a/sys-utils/mount.c
+++ b/sys-utils/mount.c
@@ -731,7 +731,7 @@ int main(int argc, char **argv)
longopts, NULL)) != -1) {
/* only few options are allowed for non-root users */
- if (mnt_context_is_restricted(cxt) && !strchr("hlLUVvpri", c))
+ if (mnt_context_is_restricted(cxt) && !strchr("hlLUVvpris", c))
exit_non_root(option_to_longopt(c, longopts));
switch(c) {