mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-27 20:47:16 +00:00
27 lines
799 B
SYSTEMD
27 lines
799 B
SYSTEMD
|
[Unit]
|
||
|
Description=Load AppArmor profiles
|
||
|
DefaultDependencies=no
|
||
|
Before=sysinit.target
|
||
|
After=systemd-journald-audit.socket
|
||
|
# profile cache
|
||
|
After=var.mount var-lib.mount
|
||
|
ConditionSecurity=apparmor
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
ExecStart=/lib/apparmor/apparmor.systemd reload
|
||
|
ExecReload=/lib/apparmor/apparmor.systemd reload
|
||
|
|
||
|
# systemd maps 'restart' to 'stop; start' which means removing AppArmor confinement
|
||
|
# from running processes (and not being able to re-apply it later).
|
||
|
# Upstream systemd developers refused to implement an option that allows overriding
|
||
|
# this behaviour, therefore we have to make ExecStop a no-op to error out on the
|
||
|
# safe side.
|
||
|
#
|
||
|
# If you really want to unload all AppArmor profiles, run aa-teardown
|
||
|
ExecStop=/bin/true
|
||
|
RemainAfterExit=yes
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|