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
Fix Released
Tyler Hicks
Fix Released

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

Revision history for this message
Christian Boltz (cboltz) wrote :

Fix commited to trunk r3301 and 2.10 branch r3288.

Changed in apparmor:
milestone: none → 2.11
status: In Progress → Fix Committed
Christian Boltz (cboltz)
Changed in apparmor:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.