2015-04-12 23:08:34 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Load AppArmor profiles
|
|
|
|
DefaultDependencies=no
|
|
|
|
Before=sysinit.target
|
|
|
|
After=systemd-journald-audit.socket
|
2017-03-26 20:43:45 +02:00
|
|
|
After=var.mount var-lib.mount
|
2015-04-12 23:08:34 +02:00
|
|
|
ConditionSecurity=apparmor
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2017-12-26 15:30:01 +01:00
|
|
|
ExecStart=/lib/apparmor/apparmor.systemd reload
|
2017-03-19 20:14:12 +01:00
|
|
|
ExecReload=/lib/apparmor/apparmor.systemd reload
|
2017-12-26 15:30:01 +01:00
|
|
|
|
|
|
|
# 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
|
2015-04-12 23:08:34 +02:00
|
|
|
RemainAfterExit=yes
|
|
|
|
|
|
|
|
[Install]
|
2017-01-24 15:23:09 +01:00
|
|
|
WantedBy=multi-user.target
|