Skip to content

Commit

Permalink
private-lib fixup
Browse files Browse the repository at this point in the history
don't try to read /usr/bin/firejail if private-bin removed it
from the sandbox filesystem
  • Loading branch information
smitsohu committed Sep 25, 2021
1 parent 5025f4f commit 8d36b86
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/firejail/fs_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ void fslib_mount_libs(const char *full_path, unsigned user) {
assert(full_path);
// if library/executable does not exist or the user does not have read access to it
// print a warning and exit the function.
if (access(full_path, F_OK)) {
if (arg_debug || arg_debug_private_lib)
printf("Cannot find %s, skipping...\n", full_path);
return;
}
if (user && access(full_path, R_OK)) {
if (arg_debug || arg_debug_private_lib)
printf("Cannot read %s, skipping...\n", full_path);
Expand Down

0 comments on commit 8d36b86

Please sign in to comment.