From 8c62f120efeedfcdc43fece9f65b4c1b5b0a06e6 Mon Sep 17 00:00:00 2001 From: Dehan Meng Date: Wed, 21 Aug 2024 14:55:01 +0800 Subject: qemu-guest-agent: Update the logfile path of qga-fsfreeze-hook.log RH-Author: 6-dehan RH-MergeRequest: 265: qemu-guest-agent: Update the logfile path of qga-fsfreeze-hook.log RH-Jira: RHEL-52250 RH-Acked-by: Konstantin Kostiuk RH-Acked-by: Miroslav Rezanina RH-Commit: [1/1] 7c5cfb882dbc277becb7daa2c5d6b8eff3d601b2 (6-dehan/src_centosupstream_qemu-kvm) selinux context 'system_u:object_r:virt_qemu_ga_log_t:s0', it should be changed to '/var/log/qemu-ga/qga-fsfreeze-hook.log'. And it's worth to mention that this is RHEL-only change for matching existing SELinux boolean and policy. Jira: https://issues.redhat.com/browse/RHEL-52250 Signed-off-by: Dehan Meng Patch-name: kvm-qemu-guest-agent-Update-the-logfile-path-of-qga-fsfr.patch Patch-id: 137 Patch-present-in-specfile: True --- scripts/qemu-guest-agent/fsfreeze-hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/qemu-guest-agent/fsfreeze-hook b/scripts/qemu-guest-agent/fsfreeze-hook index e9b84ec028..70536ba3e3 100755 --- a/scripts/qemu-guest-agent/fsfreeze-hook +++ b/scripts/qemu-guest-agent/fsfreeze-hook @@ -7,7 +7,7 @@ # "freeze" argument before the filesystem is frozen. And for fsfreeze-thaw # request, it is issued with "thaw" argument after filesystem is thawed. -LOGFILE=/var/log/qga-fsfreeze-hook.log +LOGFILE=/var/log/qemu-ga/qga-fsfreeze-hook.log FSFREEZE_D=$(dirname -- "$(realpath $0)")/fsfreeze-hook.d # Check whether file $1 is a backup or rpm-generated file and should be ignored -- 2.39.3