diff options
author | smitsohu <smitsohu@gmail.com> | 2018-06-23 02:46:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-23 02:46:03 +0200 |
commit | dc96a6c6fa677dcad87119bf828f6cea16c8d56d (patch) | |
tree | 01b9b5ec876d5ecaa03f60bb24b68787b46bc3a8 /src | |
parent | fix whitelisting of /dev/log (diff) | |
download | firejail-dc96a6c6fa677dcad87119bf828f6cea16c8d56d.tar.gz firejail-dc96a6c6fa677dcad87119bf828f6cea16c8d56d.tar.zst firejail-dc96a6c6fa677dcad87119bf828f6cea16c8d56d.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/fs_whitelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/fs_whitelist.c b/src/firejail/fs_whitelist.c index 5f8c734bc..af1993457 100644 --- a/src/firejail/fs_whitelist.c +++ b/src/firejail/fs_whitelist.c | |||
@@ -582,7 +582,7 @@ void fs_whitelist(void) { | |||
582 | // on some platforms (Debian wheezy, Ubuntu 14.04), it is a symlink to /run/shm | 582 | // on some platforms (Debian wheezy, Ubuntu 14.04), it is a symlink to /run/shm |
583 | if (strcmp(new_name, "/dev/shm") == 0 && strcmp(fname, "/run/shm") == 0); | 583 | if (strcmp(new_name, "/dev/shm") == 0 && strcmp(fname, "/run/shm") == 0); |
584 | // special handling for /dev/log, which can be a symlink to /run/systemd/journal/dev-log | 584 | // special handling for /dev/log, which can be a symlink to /run/systemd/journal/dev-log |
585 | if (strcmp(new_name, "/dev/log") == 0 && strcmp(fname, "/run/systemd/journal/dev-log") == 0); | 585 | else if (strcmp(new_name, "/dev/log") == 0 && strcmp(fname, "/run/systemd/journal/dev-log") == 0); |
586 | // special processing for /proc/self/fd files | 586 | // special processing for /proc/self/fd files |
587 | else if (strcmp(new_name, "/dev/fd") == 0 && strcmp(fname, "/proc/self/fd") == 0); | 587 | else if (strcmp(new_name, "/dev/fd") == 0 && strcmp(fname, "/proc/self/fd") == 0); |
588 | else if (strcmp(new_name, "/dev/stdin") == 0 && strcmp(fname, "/proc/self/fd/0") == 0); | 588 | else if (strcmp(new_name, "/dev/stdin") == 0 && strcmp(fname, "/proc/self/fd/0") == 0); |