feat(systemd): add initial version of all missing generator.

This commit is contained in:
Alexandre Pujol 2023-11-22 20:55:01 +00:00
parent 0d124065b9
commit e247a3949e
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
13 changed files with 265 additions and 0 deletions

View file

@ -0,0 +1,25 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/systemd/system-generators/systemd-run-generator
profile systemd-generator-run @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/systemd-common>
ptrace (read) peer=@{systemd},
@{exec_path} mr,
/etc/fstab r,
@{sys}/**/uevent r,
@{PROC}/@{pid}/cgroup r,
include if exists <local/systemd-generator-run>
}