diff options
Diffstat (limited to 'src/firejail')
-rw-r--r-- | src/firejail/fs.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c index 8c776bad5..6f9b5a60c 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c | |||
@@ -111,8 +111,12 @@ static void disable_file(OPERATION op, const char *filename) { | |||
111 | fprintf(stderr, "Warning: %s directory link was not blacklisted\n", filename); | 111 | fprintf(stderr, "Warning: %s directory link was not blacklisted\n", filename); |
112 | } | 112 | } |
113 | else { | 113 | else { |
114 | if (arg_debug) | 114 | if (arg_debug) { |
115 | printf("Disable %s\n", fname); | 115 | if (strcmp(filename, fname)) |
116 | printf("Disable %s (requesterd %s)\n", fname, filename); | ||
117 | else | ||
118 | printf("Disable %s\n", fname); | ||
119 | } | ||
116 | else if (arg_debug_blacklists) { | 120 | else if (arg_debug_blacklists) { |
117 | printf("Disable %s", fname); | 121 | printf("Disable %s", fname); |
118 | if (op == BLACKLIST_FILE) | 122 | if (op == BLACKLIST_FILE) |
@@ -120,6 +124,7 @@ static void disable_file(OPERATION op, const char *filename) { | |||
120 | else | 124 | else |
121 | printf(" - no logging\n"); | 125 | printf(" - no logging\n"); |
122 | } | 126 | } |
127 | |||
123 | if (S_ISDIR(s.st_mode)) { | 128 | if (S_ISDIR(s.st_mode)) { |
124 | if (mount(RUN_RO_DIR, fname, "none", MS_BIND, "mode=400,gid=0") < 0) | 129 | if (mount(RUN_RO_DIR, fname, "none", MS_BIND, "mode=400,gid=0") < 0) |
125 | errExit("disable file"); | 130 | errExit("disable file"); |