Add more systemd profiles.

This commit is contained in:
Alexandre Pujol 2021-04-15 22:52:14 +01:00
parent 370dda124d
commit 2e5c8f2f72
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 88 additions and 0 deletions

View file

@ -0,0 +1,25 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/systemd/user-generators/systemd-xdg-autostart-generator
profile systemd-xdg-autostart-generator @{exec_path} {
include <abstractions/base>
include <abstractions/systemd-common>
include <abstractions/nameservice-strict>
@{exec_path} mr,
/etc/xdg/autostart/{,*.desktop} r,
owner @{user_config_dirs}/autostart/{,*.desktop} r,
owner @{run}/user/@{pid}/systemd/generator.late/{,**} rw,
owner @{PROC}/@{pid}/cgroup r,
include if exists <local/systemd-xdg-autostart-generator>
}