diff options
Diffstat (limited to 'src/firejail/fs.c')
-rw-r--r-- | src/firejail/fs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c index 8491537b8..8a6dfc674 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c | |||
@@ -246,7 +246,7 @@ void fs_blacklist(const char *homedir) { | |||
246 | char *ptr; | 246 | char *ptr; |
247 | 247 | ||
248 | // process blacklist command | 248 | // process blacklist command |
249 | if (strncmp(entry->data, "bind", 4) == 0) { | 249 | if (strncmp(entry->data, "bind ", 5) == 0) { |
250 | char *dname1 = entry->data + 5; | 250 | char *dname1 = entry->data + 5; |
251 | char *dname2 = split_comma(dname1); | 251 | char *dname2 = split_comma(dname1); |
252 | if (dname2 == NULL) { | 252 | if (dname2 == NULL) { |
@@ -284,15 +284,15 @@ void fs_blacklist(const char *homedir) { | |||
284 | } | 284 | } |
285 | 285 | ||
286 | // process blacklist command | 286 | // process blacklist command |
287 | if (strncmp(entry->data, "blacklist", 9) == 0) { | 287 | if (strncmp(entry->data, "blacklist ", 10) == 0) { |
288 | ptr = entry->data + 10; | 288 | ptr = entry->data + 10; |
289 | op = BLACKLIST_FILE; | 289 | op = BLACKLIST_FILE; |
290 | } | 290 | } |
291 | else if (strncmp(entry->data, "read-only", 9) == 0) { | 291 | else if (strncmp(entry->data, "read-only ", 10) == 0) { |
292 | ptr = entry->data + 10; | 292 | ptr = entry->data + 10; |
293 | op = MOUNT_READONLY; | 293 | op = MOUNT_READONLY; |
294 | } | 294 | } |
295 | else if (strncmp(entry->data, "tmpfs", 5) == 0) { | 295 | else if (strncmp(entry->data, "tmpfs ", 6) == 0) { |
296 | ptr = entry->data + 6; | 296 | ptr = entry->data + 6; |
297 | op = MOUNT_TMPFS; | 297 | op = MOUNT_TMPFS; |
298 | } | 298 | } |