Use new profile functions in firewall

This commit is contained in:
Daniel
2022-10-03 22:12:58 +02:00
parent fd0ce5732d
commit f4490b4f11
3 changed files with 14 additions and 6 deletions

View File

@@ -71,7 +71,10 @@ func DecideOnConnection(ctx context.Context, conn *network.Connection, pkt packe
// Check if the layered profile needs updating.
if layeredProfile.NeedsUpdate() {
// Update revision counter in connection.
conn.ProfileRevisionCounter = layeredProfile.Update()
conn.ProfileRevisionCounter = layeredProfile.Update(
conn.Process().MatchingData(),
conn.Process().CreateProfileCallback,
)
conn.SaveWhenFinished()
// Reset verdict for connection.