88//!
99//! The BPF filter runs on every syscall:
1010//!
11- //! 1. Verify architecture is supported (x86_64 or aarch64, kill otherwise)
11+ //! 1. Verify architecture is supported (` x86_64` or ` aarch64` , kill otherwise)
1212//! 2. Load syscall number from `seccomp_data`
1313//! 3. Block `clone3` entirely (cannot inspect flags in struct)
1414//! 4. For `clone`, inspect flags and block namespace creation
@@ -166,7 +166,7 @@ pub struct SockFprog {
166166 pub filter : * const SockFilter ,
167167}
168168
169- /// Base syscalls allowed on all architectures (x86_64 and aarch64).
169+ /// Base syscalls allowed on all architectures (` x86_64` and ` aarch64` ).
170170///
171171/// **Ordering**: Hot syscalls first for faster BPF linear scan.
172172/// The kernel checks each JEQ instruction sequentially, so placing
@@ -352,11 +352,11 @@ const BASE_WHITELIST: &[i64] = &[
352352 libc:: SYS_recvmmsg ,
353353] ;
354354
355- /// Legacy x86_64 syscalls not available on aarch64.
355+ /// Legacy ` x86_64` syscalls not available on ` aarch64` .
356356///
357- /// On aarch64, glibc always uses the modern `*at()` equivalents
357+ /// On ` aarch64` , glibc always uses the modern `*at()` equivalents
358358/// (e.g., `openat` instead of `open`, `newfstatat` instead of `stat`).
359- /// These legacy syscalls only exist in the x86_64 syscall table.
359+ /// These legacy syscalls only exist in the ` x86_64` syscall table.
360360#[ cfg( target_arch = "x86_64" ) ]
361361const LEGACY_WHITELIST : & [ i64 ] = & [
362362 libc:: SYS_fstat ,
@@ -393,15 +393,15 @@ const LEGACY_WHITELIST: &[i64] = &[
393393 libc:: SYS_signalfd ,
394394] ;
395395
396- /// On aarch64, all equivalent functionality is provided by the modern
396+ /// On ` aarch64` , all equivalent functionality is provided by the modern
397397/// syscalls already in `BASE_WHITELIST`.
398398#[ cfg( target_arch = "aarch64" ) ]
399399const LEGACY_WHITELIST : & [ i64 ] = & [ ] ;
400400
401401/// Returns the default syscall whitelist for the current architecture.
402402///
403403/// Combines `BASE_WHITELIST` (common to all architectures) with
404- /// `LEGACY_WHITELIST` (x86_64-only legacy syscalls).
404+ /// `LEGACY_WHITELIST` (` x86_64` -only legacy syscalls).
405405pub fn default_whitelist ( ) -> Vec < i64 > {
406406 [ BASE_WHITELIST , LEGACY_WHITELIST ] . concat ( )
407407}
@@ -411,7 +411,7 @@ pub fn default_whitelist() -> Vec<i64> {
411411/// ## Filter Layout
412412///
413413/// ```text
414- /// [0-2] Architecture check (x86_64)
414+ /// [0-2] Architecture check (` x86_64` )
415415/// [3] Load syscall number
416416/// [4] clone3 -> KILL
417417/// [5] clone -> clone_handler
@@ -681,7 +681,7 @@ const BASE_NOTIFY_FS_SYSCALLS: &[i64] = &[
681681 libc:: SYS_readlinkat ,
682682] ;
683683
684- /// Legacy FS syscalls intercepted on x86_64 only.
684+ /// Legacy FS syscalls intercepted on ` x86_64` only.
685685#[ cfg( target_arch = "x86_64" ) ]
686686const LEGACY_NOTIFY_FS_SYSCALLS : & [ i64 ] = & [
687687 libc:: SYS_open ,
0 commit comments