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