parser: no option to specify configfile - breaks testcases

Bug #1277711 reported by Christian Boltz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
Confirmed
Medium
Unassigned

Bug Description

apparmor_parser doesn't have a way to specify which configfile to read - it's hardcoded to read /etc/apparmor/parser.conf.

This breaks testcases like "test with default config - shouldn't create a cache file" if the config file in /etc/ contains "write-cache", and might also break other testcases that depend on the default config.

We need something like
    apparmor_parser --configfile ./tests/parser.conf

Tags: aa-parser
Steve Beattie (sbeattie)
Changed in apparmor:
status: New → Confirmed
importance: Undecided → Medium
tags: added: aa-parser
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.