mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
private-lib fixup
don't try to read /usr/bin/firejail if private-bin removed it from the sandbox filesystem
This commit is contained in:
parent
5025f4f96d
commit
8d36b8675c
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue