From 209f5d053bae91fe404a0d08aaf5bb0be1d614f0 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Sat, 24 Jul 2004 19:56:16 +0000 Subject: security fixes + other enhancements --- util/fusermount.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'util/fusermount.c') diff --git a/util/fusermount.c b/util/fusermount.c index 7ed8300..9903bcf 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -16,6 +16,8 @@ * isn't). */ +#include + #include #include #include @@ -440,7 +442,11 @@ static int mount_fuse(const char *mnt, const char *opts) int currdir_fd = -1; fd = open(dev, O_RDWR); - if (fd == -1) { + if (fd == -1 +#ifndef AUTO_MODPROBE + && getuid() == 0 +#endif + ) { int status; pid_t pid = fork(); if (pid == 0) { -- cgit v1.2.3