diff options
author | 2016-08-03 07:27:06 -0400 | |
---|---|---|
committer | 2016-08-03 07:27:06 -0400 | |
commit | 11a21b7b4e129e3d860914618dd863eaf41e04f7 (patch) | |
tree | c349eb28fb729bcf87b5293c7c5a94b2bc4728e3 /src | |
parent | apparmor (diff) | |
download | firejail-11a21b7b4e129e3d860914618dd863eaf41e04f7.tar.gz firejail-11a21b7b4e129e3d860914618dd863eaf41e04f7.tar.zst firejail-11a21b7b4e129e3d860914618dd863eaf41e04f7.zip |
added /usr/games and /usr/local/games to private-bin default list
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/fs_bin.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/firejail/fs_bin.c b/src/firejail/fs_bin.c index dca66888c..cc2aa8f4d 100644 --- a/src/firejail/fs_bin.c +++ b/src/firejail/fs_bin.c | |||
@@ -28,6 +28,8 @@ static char *paths[] = { | |||
28 | "/usr/local/bin", | 28 | "/usr/local/bin", |
29 | "/usr/bin", | 29 | "/usr/bin", |
30 | "/bin", | 30 | "/bin", |
31 | "/usr/games", | ||
32 | "/usr/local/games", | ||
31 | "/usr/local/sbin", | 33 | "/usr/local/sbin", |
32 | "/usr/sbin", | 34 | "/usr/sbin", |
33 | "/sbin", | 35 | "/sbin", |
@@ -76,7 +78,8 @@ static char *check_dir_or_file(const char *name) { | |||
76 | } | 78 | } |
77 | 79 | ||
78 | if (!fname) { | 80 | if (!fname) { |
79 | // fprintf(stderr, "Warning: file %s not found\n", name); | 81 | if (arg_debug) |
82 | fprintf(stderr, "Warning: file %s not found\n", name); | ||
80 | return NULL; | 83 | return NULL; |
81 | } | 84 | } |
82 | 85 | ||