honor 'chmod' events in logparser.py / aa-logprof

aa-logprof doesn't ask anything for

type=AVC msg=audit(1427633461.202:281): apparmor="DENIED" operation="chmod" profile="/usr/lib64/firefox/plugin-container" name="/home/cb/.config/ibus/bus/" pid=7779 comm="plugin-containe" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000

This patch fixes this by adding 'chmod' to the list of file operation
types in logparser.py.


Acked-by: Seth Arnold <seth.arnold@canonical.com>
for both trunk and 2.9.
This commit is contained in:
Christian Boltz 2015-04-03 17:44:38 +02:00
parent 0f7bf53afb
commit 475a9bc691

View file

@ -264,7 +264,7 @@ class ReadLog:
self.debug_logger.debug('add_event_to_tree: dropped exec event in %s' % e['profile']) self.debug_logger.debug('add_event_to_tree: dropped exec event in %s' % e['profile'])
elif ( e['operation'].startswith('file_') or elif ( e['operation'].startswith('file_') or
e['operation'] in ['open', 'truncate', 'mkdir', 'mknod', 'rename_src', e['operation'] in ['open', 'truncate', 'mkdir', 'mknod', 'chmod', 'rename_src',
'rename_dest', 'unlink', 'rmdir', 'symlink_create', 'link', 'rename_dest', 'unlink', 'rmdir', 'symlink_create', 'link',
'sysctl', 'getattr', 'setattr', 'xattr'] ): 'sysctl', 'getattr', 'setattr', 'xattr'] ):
#print(e['operation'], e['name']) #print(e['operation'], e['name'])