mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-11 18:39:21 -04:00
Don't allow writes to runtime files in /etc
We mistakenly bind-mounted the runtime /usr/etc files read-write in
/etc, which means that application could modify some parts of the
runtimes (at least when using a per-user installed runtime). Fix
this by using a --ro-bind.
(cherry picked from commit 08e47e9544)
This commit is contained in:
committed by
Alexander Larsson
parent
2645aa80f1
commit
613fcfee5c
@@ -2464,7 +2464,7 @@ flatpak_run_setup_base_argv (FlatpakBwrap *bwrap,
|
||||
}
|
||||
else
|
||||
{
|
||||
flatpak_bwrap_add_args (bwrap, "--bind", src, dest, NULL);
|
||||
flatpak_bwrap_add_args (bwrap, "--ro-bind", src, dest, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user