feat(aa): simplify unix log parsing.

This commit is contained in:
Alexandre Pujol 2024-06-15 17:34:36 +01:00
parent 275b77d2ac
commit 5999fc5d40
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -176,13 +176,7 @@ var (
newRule := newLogMountMap[log["operation"]]
return newRule(log)
},
"net": func(log map[string]string) Rule {
if log["family"] == "unix" {
return newUnixFromLog(log)
} else {
return newNetworkFromLog(log)
}
},
"net": newNetworkFromLog,
"file": func(log map[string]string) Rule {
if log["operation"] == "change_onexec" {
return newChangeProfileFromLog(log)