support conditional include directives
Bug #1206742 reported by
Patrick Schleizer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
This is a small usability issue. Testing of AppArmor profiles could be a bit simpler, if users could just drop a AppArmor profile in /etc/apparmor.d/.
The problem is, some(most?) AppArmor scripts include a "#include <local/usr.bin...>" line and the AppArmor profile will fail to load, if "local/usr.bin..." does not exist. Being more opportunistic would be better, i.e. if "local/usr.bin..." exists, source it, otherwise don't fail.
summary: |
- allow non-existing profiles in /etc/apparmor.d/local + support conditional include directives |
Changed in apparmor: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
tags: | added: aa-feature |
To post a comment you must log in.
As discussed on https:/ /lists. ubuntu. com/archives/ apparmor/ 2017-November/ 011335. html, this would also avoid packages shipping empty or boilerplate-only files in /etc/apparmor. d/local/ .