mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-03 23:04:49 -04:00
exports, context: List unexported paths one per line in sorted order
This will reduce conflicts when new entries are added.
Helps: https://github.com/flatpak/flatpak/issues/5205
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit cee595763d)
This commit is contained in:
@@ -2435,8 +2435,26 @@ flatpak_context_make_sandboxed (FlatpakContext *context)
|
||||
}
|
||||
|
||||
const char *dont_mount_in_root[] = {
|
||||
".", "..", "lib", "lib32", "lib64", "bin", "sbin", "usr", "boot", "efi",
|
||||
"root", "tmp", "etc", "app", "run", "proc", "sys", "dev", "var", NULL
|
||||
".",
|
||||
"..",
|
||||
"app",
|
||||
"bin",
|
||||
"boot",
|
||||
"dev",
|
||||
"efi",
|
||||
"etc",
|
||||
"lib",
|
||||
"lib32",
|
||||
"lib64",
|
||||
"proc",
|
||||
"root",
|
||||
"run",
|
||||
"sbin",
|
||||
"sys",
|
||||
"tmp",
|
||||
"usr",
|
||||
"var",
|
||||
NULL
|
||||
};
|
||||
|
||||
static void
|
||||
|
||||
@@ -52,7 +52,12 @@
|
||||
flatpak_abs_usrmerged_dirs get the same treatment without having to be listed
|
||||
here. */
|
||||
const char *dont_export_in[] = {
|
||||
"/usr", "/etc", "/app", "/dev", "/proc", NULL
|
||||
"/app",
|
||||
"/dev",
|
||||
"/etc",
|
||||
"/proc",
|
||||
"/usr",
|
||||
NULL
|
||||
};
|
||||
|
||||
static char *
|
||||
|
||||
Reference in New Issue
Block a user