aa-easyprof prints to stdout upon manifest parsing errors
Bug #1521400 reported by
Tyler Hicks
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
Fix Released
|
Medium
|
Tyler Hicks | ||
2.10 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When generating profiles with aa-easyprof from a manifest file, the default behavior is to print the resulting profile to stdout. Therefore, it is common to pipe aa-easyprof's stdout to a file. However, when the manifest has an issue that causes parsing to fail, the error message is printed to stdout instead of stderr.
Current behavior:
$ ./utils/aa-easyprof -m /dev/null 1> /dev/null
$ ./utils/aa-easyprof -m /dev/null 2> /dev/null
Could not parse manifest
Expected behavior:
$ ./utils/aa-easyprof -m /dev/null 1> /dev/null
ERROR: Could not parse manifest
$ ./utils/aa-easyprof -m /dev/null 2> /dev/null
Changed in apparmor: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix commited to trunk r3301 and 2.10 branch r3288.