From cb46e6864bec508dbfa461d3d5b592bbeb041d25 Mon Sep 17 00:00:00 2001 From: Anders Johan Jamtli Date: Mon, 22 Apr 2024 05:55:58 +0200 Subject: [PATCH] nixos/qemu-vm: set secrurity model for 'shared' and 'certs' directories to 'none' --- nixos/modules/virtualisation/qemu-vm.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index feddd0230721..c30f4577fdd8 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -1113,10 +1113,12 @@ in shared = { source = ''"''${SHARED_DIR:-$TMPDIR/xchg}"''; target = "/tmp/shared"; + securityModel = "none"; }; certs = mkIf cfg.useHostCerts { source = ''"$TMPDIR"/certs''; target = "/etc/ssl/certs"; + securityModel = "none"; }; };