Merge ~ahasenack/ubuntu/+source/bind9:bionic-bind9-apparmor-profile-path into ubuntu/+source/bind9:ubuntu/devel
Status: | Merged | ||||
---|---|---|---|---|---|
Merge reported by: | Nish Aravamudan | ||||
Merged at revision: | 28c0d9ccf87d8ba86311b851e9cd4cf03ae1fd99 | ||||
Proposed branch: | ~ahasenack/ubuntu/+source/bind9:bionic-bind9-apparmor-profile-path | ||||
Merge into: | ubuntu/+source/bind9:ubuntu/devel | ||||
Diff against target: |
27 lines (+7/-1) 2 files modified
debian/changelog (+6/-0) debian/rules (+1/-1) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nish Aravamudan (community) | Approve | ||
Christian Ehrhardt (community) | Approve | ||
Review via email: mp+341462@code.launchpad.net |
Description of the change
Fixes the apparmor profile name passed to dh_apparmor.
Note I have another MP up for bind9, so depending on which one lands first the version in d/changelog needs to be adjusted.
To test:
sudo apt install bind9
sudo systemctl reload apparmor <-- fails
sudo systemctl status apparmor.service
...
mar 15 14:14:10 bionic-bind9 apparmor[2733]: AppArmor parser error for /etc/apparmor.
...
Look in /var/lib/
APP_
ps fauxwZ shows named as unconfined:
unconfined bind 2139 0.0 1.0 215380 20576 ? Ssl 13:01 0:00 /usr/sbin/named -f -u bind
sudo add-apt-repository -y ppa:ahasenack/
sudo apt install bind9
sudo systemctl reload apparmor <--- works just fine now
/var/lib/
Process is now confined:
/usr/sbin/named (enforce) bind 3742 0.0 1.0 215380 20656 ? Ssl 14:18 0:00 /usr/sbin/named -f -u bind
This broke more than just the reload.
I agree to the fix.
I agree to the packaging.
I tested and ack that is is working now.
- proper local include created
- confined
The only thing I wonder is when did this creep in?
If this never worked it is a major change (no matter how correct).
If it never was confined we might want a FFE to do the fix.
Or ship it with the fix, but in complain mode?
... testing former releases ...
artful: broken the same way
xenial: correct
Given that the profile is active and enforced in Xenial I think it is find without FFE to fix Bionic.
For a short moment I was scared this might be the first time we enable it.
Also an SRU for artful on this eventually I guess ?
TL;DR: Important fix and LGTM+1