From 4a978ef9b6d6a846a3a34618b3f978b795399735 Mon Sep 17 00:00:00 2001 From: curiosityseeker <60518106+curiosityseeker@users.noreply.github.com> Date: Sun, 26 Jan 2025 21:07:44 +0100 Subject: [PATCH] systemd-journald: adding mediate_deleted (#657) * Update systemd-journald profile systemd-journald flags=(mediate_deleted) { link /var/log/journal/@{hex32}/#42742 , # Failed name lookup - deleted entry link /var/log/journal/@{hex32}/#42744 , # Failed name lookup - deleted entry link /var/log/journal/@{hex32}/.#system@@{hex32}-@{hex16}-@{hex16}.journal@{hex16} -> /var/log/journal/@{hex32}/#42744, link /var/log/journal/@{hex32}/.#user-@{uid}@@{hex32}-@{hex16}-@{hex16}.journal@{hex16} -> /var/log/journal/@{hex32}/#42742, } * Update main.flags Adding `systemd-journald attach_disconnected,mediate_deleted` --- apparmor.d/groups/systemd/systemd-journald | 2 +- dists/flags/main.flags | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apparmor.d/groups/systemd/systemd-journald b/apparmor.d/groups/systemd/systemd-journald index d63a4211..b0a646f6 100644 --- a/apparmor.d/groups/systemd/systemd-journald +++ b/apparmor.d/groups/systemd/systemd-journald @@ -8,7 +8,7 @@ abi , include @{exec_path} = @{lib}/systemd/systemd-journald -profile systemd-journald @{exec_path} flags=(attach_disconnected) { +profile systemd-journald @{exec_path} flags=(attach_disconnected,mediate_deleted) { include include include diff --git a/dists/flags/main.flags b/dists/flags/main.flags index 6a1a1b6a..70bbd4a3 100644 --- a/dists/flags/main.flags +++ b/dists/flags/main.flags @@ -333,6 +333,7 @@ systemd-generator-veritysetup attach_disconnected,complain systemd-homed attach_disconnected,complain systemd-homework complain systemd-inhibit attach_disconnected,complain +systemd-journald attach_disconnected,mediate_deleted systemd-mount complain systemd-network-generator complain systemd-portabled complain