aa-easyprof prints to stdout upon manifest parsing errors

Bug #1521400 reported by Tyler Hicks on 2015-11-30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tyler Hicks

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

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) on 2017-01-10
Changed in apparmor:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers