Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=AppArmor initialization |
| 3 | After=local-fs.target |
| 4 | Before=sysinit.target |
| 5 | AssertPathIsReadWrite=/sys/kernel/security/apparmor/.load |
| 6 | ConditionSecurity=apparmor |
| 7 | DefaultDependencies=no |
| 8 | Documentation=man:apparmor(7) |
| 9 | Documentation=http://wiki.apparmor.net/ |
| 10 | |
| 11 | # Don't start this unit on the Ubuntu Live CD |
| 12 | ConditionPathExists=!/rofs/etc/apparmor.d |
| 13 | |
| 14 | [Service] |
| 15 | Type=oneshot |
| 16 | RemainAfterExit=yes |
| 17 | ExecStart=/etc/init.d/apparmor start |
| 18 | ExecStop=/etc/init.d/apparmor stop |
| 19 | ExecReload=/etc/init.d/apparmor reload |
| 20 | |
| 21 | [Install] |
| 22 | WantedBy=sysinit.target |