apparmor.d/apparmor.d/groups/systemd/systemd-userwork
Alexandre Pujol b79a1fcd31
feat(profile): general update.
Also include some preparation for the systemd profile.
2023-11-19 11:08:35 +00:00

25 lines
No EOL
579 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} = @{lib}/systemd/systemd-userwork
profile systemd-userwork @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/systemd-common>
capability sys_resource,
@{exec_path} mr,
/etc/machine-id r,
/etc/shadow r,
@{run}/systemd/userdb/ r,
include if exists <local/systemd-userwork>
}