File tree Expand file tree Collapse file tree
fspy_seccomp_unotify/src/supervisor/handler Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ arrayvec = { workspace = true }
2626blink-alloc = { workspace = true }
2727fspy_seccomp_unotify = { workspace = true , features = [" supervisor" ] }
2828nix = { workspace = true , features = [" uio" ] }
29- syscalls = { workspace = true , features = [" std" ] }
3029thread_local = { workspace = true }
3130tokio = { workspace = true , features = [" bytes" ] }
3231tokio-seqpacket = { workspace = true }
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ pub trait SeccompNotifyHandler {
99 fn handle_notify ( & mut self , notify : & seccomp_notif ) -> io:: Result < ( ) > ;
1010}
1111
12+ #[ doc( hidden) ] // Re-export for use in the macro
13+ pub use syscalls:: Sysno ;
14+
1215#[ macro_export]
1316macro_rules! impl_handler {
1417 ( $type: ty: $(
@@ -17,17 +20,17 @@ macro_rules! impl_handler {
1720 ) * ) => {
1821
1922 impl $crate:: supervisor:: handler:: SeccompNotifyHandler for $type {
20- fn syscalls( ) -> & ' static [ :: syscalls :: Sysno ] {
23+ fn syscalls( ) -> & ' static [ $crate :: supervisor :: handler :: Sysno ] {
2124 & [ $(
2225 $( #[ $attr] ) ?
23- :: syscalls :: Sysno :: $syscall
26+ $crate :: supervisor :: handler :: Sysno :: $syscall
2427 ) ,* ]
2528 }
2629 fn handle_notify( & mut self , notify: & :: libc:: seccomp_notif) -> :: std:: io:: Result <( ) > {
2730 $crate:: supervisor:: handler:: arg:: Caller :: with_pid( notify. pid as _, |caller| {
2831 $(
2932 $( #[ $attr] ) ?
30- if notify. data. nr == :: syscalls :: Sysno :: $syscall as _ {
33+ if notify. data. nr == $crate :: supervisor :: handler :: Sysno :: $syscall as _ {
3134 return self . $syscall( caller, $crate:: supervisor:: handler:: arg:: FromNotify :: from_notify( notify) ?)
3235 }
3336 ) *
You can’t perform that action at this time.
0 commit comments