|
@@ -1,3 +1,4 @@
|
|
|
+#![allow(clippy::missing_safety_doc)]
|
|
|
#![no_std]
|
|
|
|
|
|
pub use aya_bpf_bindings::bindings;
|
|
@@ -9,7 +10,7 @@ pub mod programs;
|
|
|
pub use aya_bpf_cty as cty;
|
|
|
|
|
|
use core::ffi::c_void;
|
|
|
-use cty::c_char;
|
|
|
+use cty::{c_char, c_long};
|
|
|
use helpers::{bpf_get_current_comm, bpf_get_current_pid_tgid};
|
|
|
|
|
|
pub use aya_bpf_macros as macros;
|
|
@@ -20,7 +21,7 @@ pub trait BpfContext {
|
|
|
fn as_ptr(&self) -> *mut c_void;
|
|
|
|
|
|
#[inline]
|
|
|
- fn command(&self) -> Result<[c_char; TASK_COMM_LEN], ()> {
|
|
|
+ fn command(&self) -> Result<[c_char; TASK_COMM_LEN], c_long> {
|
|
|
bpf_get_current_comm()
|
|
|
}
|
|
|
|