summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jones <jonesmi@google.com>2013-11-15 13:00:13 -0800
committerMichael Jones <jonesmi@google.com>2013-11-15 13:00:13 -0800
commit5dae7e1b8a4830798a052fd981abbd58e8483069 (patch)
treea2e4a169d3ca6355229c24d307583dc7d1b2bb4f
parent2f9c26f6bb482ae20a5ee83a7fb4c81cfe9c703f (diff)
downloadloganalysis-5dae7e1b8a4830798a052fd981abbd58e8483069.tar.gz
added selinux parsing into KernelLogParser
Change-Id: I589b03b358f325096afc5560df31b5800c2fc5d7
-rw-r--r--src/com/android/loganalysis/parser/KernelLogParser.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/loganalysis/parser/KernelLogParser.java b/src/com/android/loganalysis/parser/KernelLogParser.java
index b933dee..267058d 100644
--- a/src/com/android/loganalysis/parser/KernelLogParser.java
+++ b/src/com/android/loganalysis/parser/KernelLogParser.java
@@ -31,6 +31,7 @@ import java.util.regex.Pattern;
*/
public class KernelLogParser implements IParser {
public static final String KERNEL_RESET = "KERNEL_RESET";
+ public static final String SELINUX_DENIAL = "SELINUX_DENIAL";
/**
* Matches: [ 0.000000] Message<br />
@@ -160,6 +161,10 @@ public class KernelLogParser implements IParser {
"|Panic)"), KERNEL_RESET);
mPatternUtil.addPattern(Pattern.compile("Last reset was system watchdog timer reset"),
KERNEL_RESET);
+
+ // SELINUX denials
+ mPatternUtil.addPattern(Pattern.compile(".*avc:\\s.*"), SELINUX_DENIAL);
+
}
/**