-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of hardcoding the initial length and the ending length constants, calculate the indices with an ever increasing i variable and YOLO the length of the BPF program (but fingers crossed, MAX_FILTER_SIZE should be large enough for the foreseeable future, right now we only install 3 different syscall checks). This should be much easier to understand than the previous index shuffling.
- Loading branch information
Showing
1 changed file
with
16 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters