diff --git a/bpf-sys/Cargo.toml b/bpf-sys/Cargo.toml index 5e4f363..6e4eca3 100644 --- a/bpf-sys/Cargo.toml +++ b/bpf-sys/Cargo.toml @@ -5,14 +5,17 @@ description = "Bindings for libbpf" repository = "https://github.com/foniod/redbpf" homepage = "https://foniod.org" documentation = "https://docs.rs/bpf-sys" -authors = ["Peter Parkanyi ", "Junyeong Jeong "] +authors = [ + "Peter Parkanyi ", + "Junyeong Jeong ", +] links = "bpf" edition = "2018" license = "MIT OR Apache-2.0" keywords = ["bpf", "ebpf", "ffi"] [dependencies] -zero = "0.1" +zero = "0.1.2" libc = "0.2" regex = { version = "1.5" } glob = "0.3.0" @@ -20,7 +23,9 @@ libbpf-sys = "0.6.2" [build-dependencies] cc = "1.0" -bindgen = {version = "0.59.2", default-features = false, features = ["runtime"]} +bindgen = { version = "0.59.2", default-features = false, features = [ + "runtime", +] } libc = "0.2" glob = "0.3.0" diff --git a/redbpf-probes/build.rs b/redbpf-probes/build.rs index 5a6cf1f..1e26325 100644 --- a/redbpf-probes/build.rs +++ b/redbpf-probes/build.rs @@ -57,6 +57,10 @@ const XDP_TYPES: &[&'static str] = &[ const READ_ACCESSORS: &[&'static str] = &[ // network + "socket", + "msghdr", + "iov_iter", + "iovec", "sock", "sockaddr", "sockaddr_in", @@ -77,6 +81,8 @@ const READ_ACCESSORS: &[&'static str] = &[ // task "task_struct", "mm_struct", + "vm_area_struct", + "rb_node", "cred", ]; diff --git a/redbpf/Cargo.toml b/redbpf/Cargo.toml index 09c2de0..4aaf81d 100644 --- a/redbpf/Cargo.toml +++ b/redbpf/Cargo.toml @@ -18,7 +18,7 @@ maintenance = { status = "actively-developed" } bpf-sys = { path = "../bpf-sys", version = "2.3.0" } libbpf-sys = "0.6.2" goblin = "0.4" -zero = "0.1" +zero = "0.1.2" libc = "0.2" bindgen = {version = "0.59.2", default-features = false, features = ["runtime"]} regex = "1.0"