From 45ca052063d5c8014b7e65573c3ab9ec6950fc79 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 19 Feb 2023 20:33:29 +0000 Subject: [PATCH] feat(systemd): add systemd-sulogin-shell --- .../groups/systemd/systemd-sulogin-shell | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 apparmor.d/groups/systemd/systemd-sulogin-shell diff --git a/apparmor.d/groups/systemd/systemd-sulogin-shell b/apparmor.d/groups/systemd/systemd-sulogin-shell new file mode 100644 index 00000000..b6d9f899 --- /dev/null +++ b/apparmor.d/groups/systemd/systemd-sulogin-shell @@ -0,0 +1,22 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2021-2023 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}lib/systemd/systemd-sulogin-shell +profile systemd-sulogin-shell @{exec_path} { + include + include + + capability net_admin, + capability sys_resource, + + @{exec_path} mr, + + /{usr/,}{s,}bin/sulogin rPx, + + include if exists +} \ No newline at end of file