apparmor.d/apparmor.d/groups/systemd/systemd-xdg-autostart-generator
2023-02-04 23:55:14 +00:00

27 lines
739 B
Text

# 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>
capability net_admin,
@{exec_path} mr,
@{etc_ro}/xdg/autostart/{,*.desktop} r,
owner @{user_config_dirs}/autostart/{,*.desktop} r,
owner @{run}/user/@{uid}/systemd/generator.late/{,**} rw,
owner @{PROC}/@{pid}/cgroup r,
include if exists <local/systemd-xdg-autostart-generator>
}