Skip to content

Commit

Permalink
tmpfs mounts: also clear MS_REMOUNT flag (#4387)
Browse files Browse the repository at this point in the history
  • Loading branch information
smitsohu committed Jul 13, 2021
1 parent 110a74f commit ba5f5c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/firejail/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void fs_tmpfs(const char *dir, unsigned check_owner) {
struct statvfs buf;
if (fstatvfs(fd, &buf) == -1)
errExit("fstatvfs");
unsigned long flags = buf.f_flag & ~(MS_RDONLY|MS_BIND);
unsigned long flags = buf.f_flag & ~(MS_RDONLY|MS_BIND|MS_REMOUNT);
// mount via the symbolic link in /proc/self/fd
EUID_ROOT();
char *proc;
Expand Down

0 comments on commit ba5f5c8

Please sign in to comment.