Skip to content

Commit

Permalink
enforcer: delete element in cleanup function
Browse files Browse the repository at this point in the history
When we do cleanup, remove the element from the map so that we don't
account for it multiple times.

Fixes: 976faaf

Signed-off-by: Kornilios Kourtis <[email protected]>
  • Loading branch information
kkourt committed Oct 23, 2024
1 parent b83744f commit 61b575c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bpf/process/bpf_enforcer.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ FUNC_INLINE void do_enforcer_cleanup(void)
.reason = ENFORCER_MISSED_NOACTION,
};
enforcer_update_missed_notifications(&missed_key);
map_delete_elem(&enforcer_data, &id);
}
}

Expand Down

0 comments on commit 61b575c

Please sign in to comment.