nixosTests.systemd-journal-gateway: fix permissions on files under /run/secrets
This commit is contained in:
parent
ee3031a01f
commit
46add74525
@ -47,7 +47,7 @@ import ./make-test-python.nix (
|
|||||||
|
|
||||||
def copy_pem(file: str):
|
def copy_pem(file: str):
|
||||||
machine.copy_from_host(source=f"{tmpdir}/{file}", target=f"/run/secrets/{file}")
|
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"):
|
with subtest("Copying keys and certificates"):
|
||||||
machine.succeed("mkdir -p /run/secrets/{client,server}")
|
machine.succeed("mkdir -p /run/secrets/{client,server}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user