From 3839086a23499234644cba2e342ff53225232ccf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 13:17:48 +0000 Subject: [PATCH 1/2] Bump libbpf-rs from 0.26.2 to 0.27.0 Bumps [libbpf-rs](https://github.com/libbpf/libbpf-rs) from 0.26.2 to 0.27.0. - [Release notes](https://github.com/libbpf/libbpf-rs/releases) - [Commits](https://github.com/libbpf/libbpf-rs/compare/v0.26.2...v0.27.0) --- updated-dependencies: - dependency-name: libbpf-rs dependency-version: 0.27.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5592ec5..6df3e6c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -918,9 +918,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libbpf-rs" -version = "0.26.2" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd8e8db46a2d5967b5b3dba7aba32a875dc38f222395040607045635ec1f9b63" +checksum = "2e69ad90c37d14f657291712f297a1460a1d1b647da45e0e372996b807c38f02" dependencies = [ "bitflags 2.13.1", "libbpf-sys", diff --git a/Cargo.toml b/Cargo.toml index 57ad5f6..f02c489 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ file-rotate = "0.8.0" flate2 = "1.1.9" iced-x86 = { version = "1.21.0", default-features = false, features = ["decoder", "std"] } libc = "0.2.189" -libbpf-rs = "0.26.2" +libbpf-rs = "0.27.0" nix = { version = "0.31.3", features = ["sched"] } pcap = "2.4.0" regex = "1.12.3" From b0d7ac7b28d09abc3d446f43de8e1975f40936b4 Mon Sep 17 00:00:00 2001 From: zuub-don Date: Fri, 7 Aug 2026 20:25:39 -0700 Subject: [PATCH 2/2] Adapt to libbpf-rs 0.27 ProgramInfo.name becoming OsString Co-Authored-By: Claude Opus 5 (1M context) --- crates/skbx-sensor/src/live.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/skbx-sensor/src/live.rs b/crates/skbx-sensor/src/live.rs index 7296e32..7045c9b 100644 --- a/crates/skbx-sensor/src/live.rs +++ b/crates/skbx-sensor/src/live.rs @@ -10,6 +10,7 @@ use std::collections::{BTreeSet, VecDeque}; use std::ffi::{OsStr, c_void}; use std::mem; use std::os::fd::{AsFd, AsRawFd}; +use std::os::unix::ffi::OsStrExt; use std::path::Path; use std::ptr::NonNull; use std::slice; @@ -795,7 +796,7 @@ fn attach_dynamic_programs( let mut dynamic_config = *config; dynamic_config.dynamic_program_id = target.id; dynamic_config.dynamic_program_kind = raw_kind; - dynamic_config.dynamic_program_name = fixed_bytes::<16>(target.name.as_c_str().to_bytes()); + dynamic_config.dynamic_program_name = fixed_bytes::<16>(target.name.as_os_str().as_bytes()); dynamic_config.dynamic_program_entry = fixed_bytes::<64>(entry.as_bytes()); let mut builder = ObjectBuilder::default();