diff options
author | 2022-07-10 11:05:29 -0400 | |
---|---|---|
committer | 2022-07-10 11:05:29 -0400 | |
commit | 29783d970429e96b9fbcfe3153bdb9f8a0b8b6d0 (patch) | |
tree | 6a4167468b0d025871ead170876676abd4233133 | |
parent | Merge pull request #5238 from davidebeatrici/aria2c-winetricks-cache (diff) | |
parent | Warn when encountering EIO during remount (diff) | |
download | firejail-29783d970429e96b9fbcfe3153bdb9f8a0b8b6d0.tar.gz firejail-29783d970429e96b9fbcfe3153bdb9f8a0b8b6d0.tar.zst firejail-29783d970429e96b9fbcfe3153bdb9f8a0b8b6d0.zip |
Merge pull request #5242 from alkim0/master
Warn when encountering EIO during remount
-rw-r--r-- | src/firejail/fs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c index f30e56e8d..b44eb65ee 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c | |||
@@ -530,7 +530,9 @@ static void fs_remount_simple(const char *path, OPERATION op) { | |||
530 | if (fstat(fd, &s) < 0) { | 530 | if (fstat(fd, &s) < 0) { |
531 | // fstat can fail with EACCES if path is a FUSE mount, | 531 | // fstat can fail with EACCES if path is a FUSE mount, |
532 | // mounted without 'allow_root' or 'allow_other' | 532 | // mounted without 'allow_root' or 'allow_other' |
533 | if (errno != EACCES) | 533 | // fstat can also fail with EIO if the underlying FUSE system |
534 | // is being buggy | ||
535 | if (errno != EACCES && errno != EIO) | ||
534 | errExit("fstat"); | 536 | errExit("fstat"); |
535 | close(fd); | 537 | close(fd); |
536 | goto out; | 538 | goto out; |