Skip to content

Commit d3c4c31

Browse files
cxrvhbbhtt
authored andcommitted
manifest: Disable all filesystem access in flatpak-builder --run sandbox
Just as any other build commands, add --nofilesystem=host:reset to remove any filesystem permissions when running commands. Closes: #348
1 parent 4544d46 commit d3c4c31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/builder-manifest.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4434,6 +4434,7 @@ builder_manifest_run (BuilderManifest *self,
44344434
args = g_ptr_array_new_with_free_func (g_free);
44354435
g_ptr_array_add (args, g_strdup ("flatpak"));
44364436
g_ptr_array_add (args, g_strdup ("build"));
4437+
g_ptr_array_add (args, g_strdup ("--nofilesystem=host:reset"));
44374438
g_ptr_array_add (args, g_strdup ("--with-appdir"));
44384439

44394440
build_dir_path = g_file_get_path (builder_context_get_build_dir (context));

0 commit comments

Comments
 (0)