mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-05 00:41:03 +01:00
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:
parent
0f7bf53afb
commit
475a9bc691
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ class ReadLog:
|
|||
self.debug_logger.debug('add_event_to_tree: dropped exec event in %s' % e['profile'])
|
||||
|
||||
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',
|
||||
'sysctl', 'getattr', 'setattr', 'xattr'] ):
|
||||
#print(e['operation'], e['name'])
|
||||
|
|
Loading…
Add table
Reference in a new issue