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:
Simon McVittie
2022-12-12 13:57:24 +00:00
parent 72136fefef
commit 31a69a2cab
2 changed files with 26 additions and 3 deletions

View File

@@ -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

View File

@@ -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 *