From fe49f8f7ca1c028eade229801980c7db379f440c Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 12 Dec 2022 16:09:32 +0000 Subject: [PATCH] exports: Assert that recently-excluded paths are excluded Reproduces: https://github.com/flatpak/flatpak/issues/5205 Reproduces: https://github.com/flatpak/flatpak/issues/5207 Signed-off-by: Simon McVittie --- tests/test-exports.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test-exports.c b/tests/test-exports.c index 0f08474b..235c515d 100644 --- a/tests/test-exports.c +++ b/tests/test-exports.c @@ -1266,6 +1266,8 @@ static const struct } reserved_filesystems[] = { + { "/", "/.flatpak-info" }, + { "/.flatpak-info", "/.flatpak-info" }, { "/app", "/app" }, { "/app/foo", "/app" }, { "/bin", "/bin" }, @@ -1280,6 +1282,9 @@ reserved_filesystems[] = { "/proc", "/proc" }, { "/proc/1", "/proc" }, { "/proc/sys/net", "/proc" }, + { "/run", "/run/flatpak" }, + { "/run/flatpak/foo/bar", "/run/flatpak" }, + { "/run/host/foo", "/run/host" }, { "/sbin", "/sbin" }, { "/sbin/ldconfig", "/sbin" }, { "/usr", "/usr" },