mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
23 lines
513 B
Python
23 lines
513 B
Python
|
# kernel message checker module
|
||
|
#
|
||
|
# Copyright (c) 2013, Intel Corporation
|
||
|
#
|
||
|
# Author: Johannes Berg <johannes@sipsolutions.net>
|
||
|
#
|
||
|
# This software may be distributed under the terms of the BSD license.
|
||
|
# See README for more details.
|
||
|
#
|
||
|
"""
|
||
|
Tests for kernel messages to find if there were any issues in them.
|
||
|
"""
|
||
|
|
||
|
import re
|
||
|
|
||
|
issue = re.compile('(\[[0-9 .]*\] )?(WARNING:|BUG:).*')
|
||
|
|
||
|
def check_kernel(logfile):
|
||
|
for line in open(logfile, 'r'):
|
||
|
if issue.match(line):
|
||
|
return False
|
||
|
return True
|