Projects STRLCPY ebpfguard Commits 4a744204
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    .cargo/config.toml
    1 1  [alias]
    2 2  xtask = "run --package xtask --"
     3 + 
     4 +[build]
     5 +target = "x86_64-unknown-linux-musl"
     6 + 
  • ■ ■ ■ ■ ■
    .github/workflows/build-test.yaml
    skipped 19 lines
    20 20   uses: dtolnay/rust-toolchain@master
    21 21   with:
    22 22   toolchain: nightly
     23 + targets: x86_64-unknown-linux-musl
    23 24   components: rustfmt, clippy, miri, rust-src
    24 25   
    25 26   - name: Install Rust stable
    26 27   uses: dtolnay/rust-toolchain@master
    27 28   with:
    28 29   toolchain: stable
     30 + targets: x86_64-unknown-linux-musl
    29 31   components: rustfmt, clippy
    30 32   
    31 33   - name: Install bpf-linker
    32 34   run: |
    33  - cargo install bpf-linker
     35 + cargo install bpf-linker --git https://github.com/noboruma/bpf-linker
    34 36   
    35 37   - name: Build eBPF code
    36 38   run: |
    skipped 22 lines
  • ■ ■ ■ ■ ■
    docker/ubuntu/Dockerfile
    skipped 10 lines
    11 11  RUN curl https://sh.rustup.rs --proto '=https' --tlsv1.2 -sSf | sh -s -- -y
    12 12  RUN $HOME/.cargo/bin/rustup toolchain install nightly --component rust-src
    13 13  RUN $HOME/.cargo/bin/rustup component add miri --toolchain nightly
    14  -RUN $HOME/.cargo/bin/cargo install bpf-linker bindgen-cli
     14 +RUN $HOME/.cargo/bin/cargo install bpf-linker --git https://github.com/noboruma/bpf-linker
     15 +RUN $HOME/.cargo/bin/cargo install bindgen-cli
    15 16   
  • ■ ■ ■ ■
    docs/gh/prerequisites.md
    skipped 137 lines
    138 138  Install bpf-linker:
    139 139   
    140 140  ```
    141  -$ cargo install bpf-linker
     141 +$ cargo install bpf-linker --git https://github.com/noboruma/bpf-linker
    142 142  ```
    143 143   
    144 144  bpf-linker installation on architectures other than x86_64 may be more involved. Refer to [aya-rs documentation](https://aya-rs.dev/book/start/development/) for instructions.
    skipped 12 lines
  • ■ ■ ■ ■ ■
    ebpfguard-ebpf/build.rs
    skipped 23 lines
    24 24   ];
    25 25   
    26 26   let bindings = aya_tool::generate(
    27  - InputFile::Btf(PathBuf::from("/sys/kernel/btf/vmlinux")),
     27 + InputFile::Header(PathBuf::from("src/vmlinux.h")),
    28 28   &names,
    29 29   &[],
    30 30   )
    31 31   .unwrap();
     32 + println!("cargo:rerun-if-changed=src/src/vmlinux.h");
    32 33   
    33 34   let mut out = File::create(dest_path).unwrap();
    34 35   write!(out, "{}", bindings).unwrap();
    skipped 21 lines
Please wait...
Page is in error, reload to recover