aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Albert Kim <alkim@alkim.org>2022-07-07 10:43:18 -0700
committerLibravatar Albert Kim <alkim@alkim.org>2022-07-07 10:43:18 -0700
commitf9540c2b13f6fc4b5e54e1535e454121ca0b4ba4 (patch)
treefe6e256d8d803ea9df715362397b2164a040c7e6
parentadd Colossal Order to steam.profile (diff)
downloadfirejail-f9540c2b13f6fc4b5e54e1535e454121ca0b4ba4.tar.gz
firejail-f9540c2b13f6fc4b5e54e1535e454121ca0b4ba4.tar.zst
firejail-f9540c2b13f6fc4b5e54e1535e454121ca0b4ba4.zip
Warn when encountering EIO during remount
Instead of simply erroring out, just warn the user that a filesystem was unable to be remounted due to EIO. This is helpful for FUSE filesystems which might be buggy or having issues.
-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;