diff --git a/src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c b/src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c index 126422bb69c..0ff41a138be 100644 --- a/src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c +++ b/src/nsresourced/bpf/userns_restrict/userns-restrict.bpf.c @@ -24,7 +24,7 @@ /* bpf_rdonly_cast() was introduced in libbpf commit 688879f together with * the definition of a bpf_core_cast macro. So use that one to avoid * defining a prototype for bpf_rdonly_cast */ -void *bpf_rdonly_cast(void *, __u32) __ksym; +void* bpf_rdonly_cast(const void *, __u32) __ksym; #endif /* BPF module that implements an allowlist of mounts (identified by mount ID) for user namespaces (identified