From be9adec40ffc81b28cbb051d0aa1f46f596f7b81 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 17 Dec 2009 12:27:16 +0100 Subject: [PATCH] mount: disable --no-canonicalize for non-root users Signed-off-by: Karel Zak --- mount/mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.39.5