diff --git a/apparmor.d/groups/systemd/systemd-sleep b/apparmor.d/groups/systemd/systemd-sleep new file mode 100644 index 00000000..934748b8 --- /dev/null +++ b/apparmor.d/groups/systemd/systemd-sleep @@ -0,0 +1,25 @@ +# 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-sleep +profile systemd-sleep @{exec_path} { + include + include + + capability net_admin, + capability sys_resource, + + @{exec_path} mr, + + /etc/systemd/sleep.conf r, + /etc/systemd/sleep.conf.d/{,*} r, + + @{sys}/power/state rw, + + include if exists +} \ No newline at end of file