From b91ddfa493472b4e4bb2e98d235818b4fade6a24 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 22 Oct 2021 14:55:22 +0100 Subject: [PATCH] Add initial systemd-portabled. --- apparmor.d/groups/systemd/systemd-portabled | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 apparmor.d/groups/systemd/systemd-portabled diff --git a/apparmor.d/groups/systemd/systemd-portabled b/apparmor.d/groups/systemd/systemd-portabled new file mode 100644 index 00000000..a0e2fd18 --- /dev/null +++ b/apparmor.d/groups/systemd/systemd-portabled @@ -0,0 +1,27 @@ +# 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-portabled +profile systemd-portabled @{exec_path} { + include + + capability sys_ptrace, + + ptrace (read) peer=unconfined, + + @{exec_path} mr, + + /var/lib/portables/{,**} rw, + + @{PROC}/1/environ r, + @{PROC}/cmdline r, + @{PROC}/sys/kernel/osrelease r, + @{PROC}/sys/kernel/random/boot_id r, + + include if exists +} \ No newline at end of file