From: Karel Zak Date: Thu, 17 Dec 2009 11:27:16 +0000 (+0100) Subject: mount: disable --no-canonicalize for non-root users X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be9adec40ffc81b28cbb051d0aa1f46f596f7b81;p=util-linux mount: disable --no-canonicalize for non-root users Signed-off-by: Karel Zak --- diff --git a/mount/mount.c b/mount/mount.c index f3f8910e..0cef101a 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -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 */