diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2004-07-24 19:56:16 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2004-07-24 19:56:16 +0000 |
commit | 209f5d053bae91fe404a0d08aaf5bb0be1d614f0 (patch) | |
tree | 79d20999e8e392c5231894d52d69a0ead679a421 /util | |
parent | d66d3947d5d4fdda0bdde3f5299553673d4ee64e (diff) |
security fixes + other enhancements
Diffstat (limited to 'util')
-rw-r--r-- | util/fusermount.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 <config.h> + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -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) { |