aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/fs_whitelist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/fs_whitelist.c')
-rw-r--r--src/firejail/fs_whitelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/fs_whitelist.c b/src/firejail/fs_whitelist.c
index 24c83adee..e177c3ec0 100644
--- a/src/firejail/fs_whitelist.c
+++ b/src/firejail/fs_whitelist.c
@@ -358,8 +358,8 @@ static void whitelist_path(ProfileEntry *entry) {
358 // check the last mount operation 358 // check the last mount operation
359 MountData *mptr = get_last_mount(); // will do exit(1) if the mount cannot be found 359 MountData *mptr = get_last_mount(); // will do exit(1) if the mount cannot be found
360 360
361 //if (strncmp(mptr->dir, path, strlen(path)) != 0) - temporarily disabled, problems with paths that have empty spaces 361 if (strncmp(mptr->dir, path, strlen(path)) != 0)
362 // errLogExit("invalid whitelist mount"); 362 errLogExit("invalid whitelist mount");
363 // No mounts are allowed on top level directories. A destination such as "/etc" is very bad! 363 // No mounts are allowed on top level directories. A destination such as "/etc" is very bad!
364 // - there should be more than one '/' char in dest string 364 // - there should be more than one '/' char in dest string
365 if (mptr->dir == strrchr(mptr->dir, '/')) 365 if (mptr->dir == strrchr(mptr->dir, '/'))