Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1612e264 authored by Dan Willemsen's avatar Dan Willemsen
Browse files

nsjail: Always remount /tmp before src/out/dist

A user was trying to use OUT_DIR=/tmp/...-out DIST_DIR=/tmp/...-dist

Test: OUT_DIR=/tmp/test-out DIST_DIR=/tmp/test-dist m nothing
Change-Id: I811cc8e1bda8d766406603df47309a8637cef48c
parent ef720013
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -181,15 +181,15 @@ func (c *Cmd) wrapSandbox() {
		// For now, just map everything. Make most things readonly.
		"-R", "/",

		// Mount a writable tmp dir
		"-B", "/tmp",

		// Mount source are read-write
		"-B", sandboxConfig.srcDir,

		//Mount out dir as read-write
		"-B", sandboxConfig.outDir,

		// Mount a writable tmp dir
		"-B", "/tmp",

		// Disable newcgroup for now, since it may require newer kernels
		// TODO: try out cgroups
		"--disable_clone_newcgroup",