From 0daf8fae3493e2bc3851bd1f3e12448b33f44aad Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Tue, 6 Feb 2024 16:47:17 -0500 Subject: [PATCH] mantle/platform/qemu: pass --xattr to virtiofsd If we ever want to compose over virtiofsd we'll need xattr support. --- mantle/platform/qemu.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mantle/platform/qemu.go b/mantle/platform/qemu.go index a9841597c9..55bd5f1382 100644 --- a/mantle/platform/qemu.go +++ b/mantle/platform/qemu.go @@ -1626,6 +1626,8 @@ func createVirtiofsCmd(directory, socketPath string) exec.Cmd { // We don't need seccomp filtering; we trust our workloads. This incidentally // works around issues like https://gitlab.com/virtio-fs/virtiofsd/-/merge_requests/200. args = append(args, "--seccomp=none") + // OSTree composes use xattrs + args = append(args, "--xattr") cmd := exec.Command("/usr/libexec/virtiofsd", args...) // This sets things up so that the `.` we passed in the arguments is the target directory cmd.Dir = directory