summarylogtreecommitdiffstats
path: root/snapd.apparmor.service
blob: 1ad0ee00cc05a3d46f1ec670fcdf9c5dfd744e78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=Snap AppArmor profiles
After=apparmor.service
Before=snapd.service

[Service]
Type=oneshot
ExecStart=-/usr/bin/find /var/lib/snapd/apparmor/profiles -maxdepth 1 -type f -exec /usr/bin/apparmor_parser -r {} +
ExecStop=-/usr/bin/find /var/lib/snapd/apparmor/profiles -maxdepth 1 -type f -exec /usr/bin/apparmor_parser -R {} +
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target