Skip to content

Commit

Permalink
Restart haveged and apparmor
Browse files Browse the repository at this point in the history
In the Xenial upgrade scenario, restarting will ensure the AppArmor profiles are correctly loaded so that it can be properly enforced, prior to rebooting.
  • Loading branch information
emkll committed Feb 26, 2019
1 parent 063ad16 commit 4a7ea91
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install_files/ansible-base/roles/app/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
name: securedrop_worker
state: present

## Here, we list apparmor before haveged to ensure the correct AppArmor
## profile is loaded prior to restarting haveged
- name: restart apparmor
service:
name: apparmor
state: restarted

- name: restart haveged
service:
name: haveged
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
line: "After=apparmor.service systemd-random-seed.service"
backrefs: yes
when: haveged_apparmor.stat.exists
notify:
- restart apparmor
- restart haveged
tags:
- haveged
- hardening

0 comments on commit 4a7ea91

Please sign in to comment.