From 665802594c2181ae890b3655867944a3fef11508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=C2=A0Decina?= Date: Wed, 9 Jun 2021 08:19:09 +0000 Subject: [PATCH] aya: programs: fix syscall name in errors --- aya/src/programs/sk_msg.rs | 2 +- aya/src/programs/sk_skb.rs | 2 +- aya/src/programs/sock_ops.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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, } })?;