mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 13:28:19 +00:00
ignore log event if request_mask == ''
We already check for None, but '' != None ;-) References: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1525119 Acked-by: John Johansen <john.johansen@canonical.com> for 2.9, 2.10 and trunk.
This commit is contained in:
parent
451ab0d8f0
commit
e51ad3c632
@ -288,7 +288,8 @@ class ReadLog:
|
|||||||
|
|
||||||
# for some reason, we get file_perm and file_inherit log events without request_mask, see
|
# for some reason, we get file_perm and file_inherit log events without request_mask, see
|
||||||
# https://bugs.launchpad.net/apparmor/+bug/1466812/ and https://bugs.launchpad.net/apparmor/+bug/1509030
|
# https://bugs.launchpad.net/apparmor/+bug/1466812/ and https://bugs.launchpad.net/apparmor/+bug/1509030
|
||||||
if e['operation'] in ['file_perm', 'file_inherit'] and e['request_mask'] is None:
|
# request_mask can also be '', see https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1525119
|
||||||
|
if e['operation'] in ['file_perm', 'file_inherit'] and not e['request_mask']:
|
||||||
self.debug_logger.debug('UNHANDLED (missing request_mask): %s' % e)
|
self.debug_logger.debug('UNHANDLED (missing request_mask): %s' % e)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user