From c075f42b0980a6cd46ecaf53db2071637b6613d5 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Thu, 12 Dec 2024 11:32:14 -0800 Subject: [PATCH] nixosTests.systemd-journal-gateway: fix permissions on files under /run/secrets --- nixos/tests/systemd-journal-gateway.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/tests/systemd-journal-gateway.nix b/nixos/tests/systemd-journal-gateway.nix index 1b7428590a4a85..6ae009f5362c51 100644 --- a/nixos/tests/systemd-journal-gateway.nix +++ b/nixos/tests/systemd-journal-gateway.nix @@ -47,7 +47,7 @@ import ./make-test-python.nix ( def copy_pem(file: str): machine.copy_from_host(source=f"{tmpdir}/{file}", target=f"/run/secrets/{file}") - machine.succeed(f"chmod 644 /run/secrets/{file}") + machine.succeed(f"chmod 600 /run/secrets/{file} && chown systemd-journal-gateway /run/secrets/{file}") with subtest("Copying keys and certificates"): machine.succeed("mkdir -p /run/secrets/{client,server}")