aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2022-07-10 11:05:29 -0400
committerLibravatar GitHub <noreply@github.com>2022-07-10 11:05:29 -0400
commit29783d970429e96b9fbcfe3153bdb9f8a0b8b6d0 (patch)
tree6a4167468b0d025871ead170876676abd4233133
parentMerge pull request #5238 from davidebeatrici/aria2c-winetricks-cache (diff)
parentWarn when encountering EIO during remount (diff)
downloadfirejail-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.c4
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;