mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-05 22:49:37 -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.
This commit is contained in:
committed by
Alexander Larsson
parent
40854e00df
commit
6711d7ae99
@@ -2466,7 +2466,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