Skip to content

Commit a362c36

Browse files
committed
Pass path struct as a void* to satisfy rhcos verifier
1 parent 50e1d9e commit a362c36

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

fact-ebpf/src/bpf/main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ int BPF_PROG(trace_path_chmod, struct path* path, umode_t mode) {
175175
}
176176

177177
SEC("lsm/path_chown")
178-
int BPF_PROG(trace_path_chown, struct path* path, unsigned long long uid, unsigned long long gid) {
178+
int BPF_PROG(trace_path_chown, void* path_ptr, unsigned long long uid, unsigned long long gid) {
179+
struct path* path = (struct path*)path_ptr;
180+
179181
struct metrics_t* m = get_metrics();
180182
if (m == NULL) {
181183
return 0;

0 commit comments

Comments
 (0)