Skip to content

Commit

Permalink
update loop for rule matching in file,network hook (#1484)
Browse files Browse the repository at this point in the history
Signed-off-by: Aryan-sharma11 <[email protected]>
  • Loading branch information
Aryan-sharma11 authored Oct 30, 2023
1 parent 68281d0 commit a6e16a1
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KubeArmor/BPF/shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ static inline int match_and_enforce_path_hooks(struct path *f_path, u32 id , u32
bool recursivebuthint = false;

#pragma unroll
for (int i = 0; i < 64; i++) {
for (int i = 0; i < MAX_STRING_SIZE; i++) {
if (store->path[i] == '\0')
break;

Expand Down Expand Up @@ -456,7 +456,7 @@ static inline int match_and_enforce_path_hooks(struct path *f_path, u32 id , u32
recursivebuthint = false;

#pragma unroll
for (int i = 0; i < 64; i++) {
for (int i = 0; i < MAX_STRING_SIZE; i++) {
if (store->path[i] == '\0')
break;

Expand Down
Binary file modified KubeArmor/enforcer/bpflsm/enforcer_bpfeb.o
Binary file not shown.
Binary file modified KubeArmor/enforcer/bpflsm/enforcer_bpfel.o
Binary file not shown.
Binary file modified KubeArmor/enforcer/bpflsm/enforcer_path_bpfeb.o
Binary file not shown.
Binary file modified KubeArmor/enforcer/bpflsm/enforcer_path_bpfel.o
Binary file not shown.

0 comments on commit a6e16a1

Please sign in to comment.