feat(systemd): add systemd-user{db,work}

This commit is contained in:
Alexandre Pujol 2023-02-19 20:29:22 +00:00
parent c2076a213b
commit 5d6a4e4e4c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,22 @@
# 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/systemd-userwork
profile systemd-userwork @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/systemd-common>
@{exec_path} mr,
/etc/machine-id r,
@{run}/systemd/userdb/ r,
include if exists <local/systemd-userwork>
}