aa-logprof requires /etc/apparmor/logprof.conf

Bug #1606679 reported by Uzair Shamim
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
AppArmor
New
Undecided
Unassigned

Bug Description

Hi,

Currently when following the build instructions for apparmor, the aa-tools (logprof) do not function until /etc/apparmor/logprof.conf exists

System was 16.04.1 LTS, apparmor version from launchpad.

Tags: aa-tools
Christian Boltz (cboltz)
summary: - Apparmor setup requires manually copying logprof.conf
+ aa-logprof requires /etc/apparmor/logprof.conf
description: updated
Revision history for this message
Christian Boltz (cboltz) wrote :

This affects running aa-logprof tests (once we have them - the current tests "only" test aa.py etc.) and people who want to run aa-logprof from the sources without installing logprof.conf first.

Traceback (most recent call last):
  File "aa-logprof", line 37, in <module>
    apparmor.set_logfile(args.file)
  File "/home/user/apparmor/utils/apparmor/aa.py", line 2159, in set_logfile
    logfile = conf.find_first_file(cfg['settings']['logfiles']) or '/var/log/syslog'
  File "/usr/lib/python3.5/configparser.py", line 1230, in __getitem__
    raise KeyError(key)
KeyError: 'logfiles'

tags: added: aa-tools
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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