From 6890fff5566815c89245184ce187fd6b0fb3f403 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Thu, 7 Oct 2021 15:00:55 +0100 Subject: [PATCH] Add systemd-update-done. --- apparmor.d/groups/systemd/systemd-update-done | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 apparmor.d/groups/systemd/systemd-update-done diff --git a/apparmor.d/groups/systemd/systemd-update-done b/apparmor.d/groups/systemd/systemd-update-done new file mode 100644 index 00000000..9b49f3bf --- /dev/null +++ b/apparmor.d/groups/systemd/systemd-update-done @@ -0,0 +1,29 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2021 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}lib/systemd/systemd-update-done +profile systemd-update-done @{exec_path} { + include + + capability net_admin, + + ptrace (read) peer=unconfined, + + @{exec_path} mr, + + /etc/.#.updated[0-9a-zA-Z]* rw, + /etc/.updated w, + /var/.#.updated[0-9a-zA-Z]* rw, + /var/.updated w, + + @{PROC}/1/environ r, + @{PROC}/cmdline r, + @{PROC}/sys/kernel/osrelease r, + + include if exists +} \ No newline at end of file