35 lines
837 B
Text
35 lines
837 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{lib}/systemd/system-generators/systemd-gpt-auto-generator
|
|
profile systemd-generator-gpt-auto @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/disks-read>
|
|
include <abstractions/common/systemd>
|
|
|
|
capability sys_admin,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/ r,
|
|
/boot/ r,
|
|
/efi/ r,
|
|
/etc/fstab r,
|
|
/usr/ r,
|
|
|
|
@{run}/systemd/generator.late/**.{,auto}mount w,
|
|
@{run}/systemd/generator.late/local-fs.target.wants/ w,
|
|
|
|
@{sys}/firmware/efi/efivars/LoaderDevicePartUUID-@{uuid} r,
|
|
|
|
@{PROC}/@{pid}/cgroup r,
|
|
|
|
include if exists <local/systemd-generator-gpt-auto>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|