init script returns 0 even after parsing failure
Bug #1370228 reported by
Felix Geyer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Fix Released
|
Undecided
|
Jamie Strandboge |
Bug Description
The apparmor init script (and likely the upstart job, but haven't checked) returns exit code 0 even when a profile can't be loaded.
In /lib/apparmor/
Parsing errors in the first dir are ignored.
The attached patch returns the first non-zero return code or zero if there are no errors.
Related branches
tags: | added: patch |
Changed in apparmor (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Jamie Strandboge (jdstrand) |
To post a comment you must log in.
Tested with apparmor 2.8.96~ 2652-0ubuntu4.