]> err.no Git - util-linux/commitdiff
mount: disable --no-canonicalize for non-root users
authorKarel Zak <kzak@redhat.com>
Thu, 17 Dec 2009 11:27:16 +0000 (12:27 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 17 Dec 2009 11:30:46 +0000 (12:30 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/mount.c

index f3f8910ed65418795965d20e566c27f02ac2088a..0cef101abc350977a5d655cd81024a6e6f6cbd55 100644 (file)
@@ -2257,7 +2257,8 @@ main(int argc, char *argv[]) {
 
                if (restricted &&
                    (types || options || readwrite || nomtab || mount_all ||
-                    fake || mounttype || (argc + specseen) != 1)) {
+                    nocanonicalize || fake || mounttype ||
+                    (argc + specseen) != 1)) {
 
                        if (ruid == 0 && euid != 0)
                                /* user is root, but setuid to non-root */