From 2d7210557bd4a283bd14024d9d481f2395ec2ab3 Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Tue, 10 Oct 2023 22:55:15 +0100 Subject: [PATCH] shutdown: fix perms on /target/var/log/installer --- subiquity/server/controllers/shutdown.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subiquity/server/controllers/shutdown.py b/subiquity/server/controllers/shutdown.py index 5e27e5c9..c94d7d91 100644 --- a/subiquity/server/controllers/shutdown.py +++ b/subiquity/server/controllers/shutdown.py @@ -114,8 +114,8 @@ class ShutdownController(SubiquityController): await self.app.command_runner.run( ["cp", "-aT", "/var/log/installer", target_logs] ) - # Close the permissions from group writes on the target. - set_log_perms(target_logs, group_write=False) + # explicitly setting the expected permissions on this dir + set_log_perms(target_logs, mode=0o770, group="adm") journal_txt = os.path.join(target_logs, "installer-journal.txt") try: