Skip to content

Commit

Permalink
Makes cargo fmt happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Sep 4, 2024
1 parent 322e9cd commit ef1fe8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
6 changes: 4 additions & 2 deletions src/syscalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ declare_builtin_function!(
);

declare_builtin_function!(
/// Same as `void *memfrob(void *s, size_t n);` in `string.h` in C. See the GNU manual page (in
/// section 3) for `memfrob`. The memory is directly modified, and the syscall returns 0 in all
/// Same as `void *memfrob(void *s, size_t n);` in `string.h` in C.
///
/// See the GNU manual page (in section 3) for `memfrob`.
/// The memory is directly modified, and the syscall returns 0 in all
/// cases. Arguments 3 to 5 are unused.
SyscallMemFrob,
fn rust(
Expand Down
13 changes: 1 addition & 12 deletions src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,7 @@
// the MIT license <http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

//! This “verifier” performs simple checks when the eBPF program is loaded into the VM (before it is
//! interpreted or JIT-compiled). It has nothing to do with the much more elaborated verifier inside
//! Linux kernel. There is no verification regarding the program flow control (should be a Direct
//! Acyclic Graph) or the consistency for registers usage (the verifier of the kernel assigns types
//! to the registers and is much stricter).
//!
//! On the other hand, rbpf is not expected to run in kernel space.
//!
//! Improving the verifier would be nice, but this is not trivial (and Linux kernel is under GPL
//! license, so we cannot copy it).
//!
//! Contrary to the verifier of the Linux kernel, this one does not modify the bytecode at all.
//! Verifies that the bytecode is valid for the given config.
use crate::{
ebpf,
Expand Down

0 comments on commit ef1fe8d

Please sign in to comment.