-
Notifications
You must be signed in to change notification settings - Fork 704
Closed
Labels
Milestone
Description
Description
There are AppArmor deny messages when a user navigates to the journalist interface when upgrading to 0.12.0-rc2. from 0.11.1
Steps to Reproduce
- Upgrade to 0.12.0-rc2 from 0.11.1
- Navigate to the journalist interface
- Observe AppArmor denies in /var/log/kern.log:
Feb 20 16:50:31 app-prod kernel: [ 7236.252571] audit: type=1400 audit(1550681431.003:49): apparmor="DENIED" operation="open" profile="/usr/sbin/apache2" name="/etc/" pid=5359 comm="apache2" requested_mask="r" denied_mask="r" fsuid=33 ouid=0
Expected Behavior
AppArmor profile should allow Apache to read the current release
Actual Behavior
AppArmor profile denies read access to the file
Comments
It appears that securedrop-app-code package does not overwrite the existing apache2 configuration, as there are two configs in /etc/apparmor.d/:
vagrant@app-prod:~$ ls -lah /etc/apparmor.d/usr.sbin.apache2*
-rw-r--r-- 1 root root 14K Feb 20 14:48 /etc/apparmor.d/usr.sbin.apache2
-rw-r--r-- 1 root root 15K Feb 18 19:35 /etc/apparmor.d/usr.sbin.apache2.dpkg-dist
This is likely due to Dpkg::Options::=--force-confold in /etc/cron-apt/action.d/5-security
Reactions are currently unavailable