diff --git a/aya/src/programs/sk_msg.rs b/aya/src/programs/sk_msg.rs index f7951a18..f4b8731d 100644 --- a/aya/src/programs/sk_msg.rs +++ b/aya/src/programs/sk_msg.rs @@ -38,7 +38,7 @@ impl SkMsg { bpf_prog_attach(prog_fd, map_fd, BPF_SK_MSG_VERDICT).map_err(|(_, io_error)| { ProgramError::SyscallError { - call: "bpf_link_create".to_owned(), + call: "bpf_prog_attach".to_owned(), io_error, } })?; diff --git a/aya/src/programs/sk_skb.rs b/aya/src/programs/sk_skb.rs index 140c0bec..7c55b7f0 100644 --- a/aya/src/programs/sk_skb.rs +++ b/aya/src/programs/sk_skb.rs @@ -44,7 +44,7 @@ impl SkSkb { }; bpf_prog_attach(prog_fd, map_fd, attach_type).map_err(|(_, io_error)| { ProgramError::SyscallError { - call: "bpf_link_create".to_owned(), + call: "bpf_prog_attach".to_owned(), io_error, } })?; diff --git a/aya/src/programs/sock_ops.rs b/aya/src/programs/sock_ops.rs index e98bb46b..d9ba8741 100644 --- a/aya/src/programs/sock_ops.rs +++ b/aya/src/programs/sock_ops.rs @@ -31,7 +31,7 @@ impl SockOps { bpf_prog_attach(prog_fd, cgroup_fd, BPF_CGROUP_SOCK_OPS).map_err(|(_, io_error)| { ProgramError::SyscallError { - call: "bpf_link_create".to_owned(), + call: "bpf_prog_attach".to_owned(), io_error, } })?;