sandbox: set mkdir perm

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-03-24 12:45:19 +09:00
parent 0eb1bc6301
commit 40f00d570e
4 changed files with 39 additions and 25 deletions

View File

@@ -93,7 +93,7 @@ func TestContainer(t *testing.T) {
container.
Tmpfs("/tmp", 0, 0755).
Bind(os.Args[0], os.Args[0], 0).
Mkdir("/usr/bin").
Mkdir("/usr/bin", 0755).
Link(os.Args[0], "/usr/bin/sandbox.test").
Place("/etc/hostname", []byte(container.Args[5]))
// in case test has cgo enabled