Skip to content

dmitris/awesome-aya

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Awesome Aya Awesome

A curated list of awesome eBPF 🐝 projects using aya-rs and Rust πŸ¦€

eBPF is a technology that allows running user-supplied programs inside the Linux kernel. For more info see https://ebpf.io/what-is-ebpf.

Aya is an eBPF library built with a focus on operability and developer experience. It does not rely on libbpf nor bcc - it's built from the ground up purely in Rust, using only the libc crate to execute syscalls. With BTF support and when linked with musl, it offers a true compile once, run everywhere solution, where a single self-contained binary can be deployed on many linux distributions and kernel versions.

Some of the major features provided include:

  • Support for the BPF Type Format (BTF), which is transparently enabled when supported by the target kernel. This allows eBPF programs compiled against one kernel version to run on different kernel versions without the need to recompile.
  • Support for function call relocation and global data maps, which allows eBPF programs to make function calls and use global variables and initializers.
  • Async support with both tokio and async-std.
  • Easy to deploy and fast to build: aya doesn't require a kernel build or compiled headers, and not even a C toolchain; a release build completes in a matter of seconds.

Note: The eBPF ecosystem in general is constantly evolving, including Aya itself. We'd love your help to keep this list up to date. Please feel free to file an issue or make a PR if you would like to make a correction or want to have your awesome project included.

Contributing

Contributions are welcome! Please see the contributing guide. If you would like to have your project included in this list, please file a pull request.

Contents

Reference Documentation

Articles and Presentations

Aya-related blog posts

Aya-related talks

Small Tools that Use Aya

  • suidsnoop - Uses Aya and eBPF LSM programs to implement audit logging and policy enforcement for suid binaries
    • Includes examples of:
      • Writing LSM programs in aya-bpf
      • Getting LSM program arguments in aya-bpf
      • Enforcing custom security policy in aya-bpf
      • Using aya::AsyncPerfEventArray to pass events to userspace

Major Projects that Use Aya

  • lockc - An eBPF LSM-based MAC security audit system for container workloads
    • Works with Docker and Kubernetes (with containerd CRI)
    • Enforcing 3 pre-defined policy levels on containers

Aya eBPF-Side Libraries

  • aya-log - A logging library for eBPF programs written using aya-bpf
    • This is a fully-reusable logging library for eBPF programs written in aya
    • It provides a logging interface for eBPF programs that emulates Rust's standard log crate

Acknowledgements

The original idea for awesome comes from Sindre Sorhus. The format of this repository is based on zoidbergwill's Awesome eBPF list.

License

CC0

All text in this repository is governed by the Creative Commons Attribution-ShareAlike 4.0 International License.

About

A curated list of awesome eBPF 🐝 projects using aya-rs and Rust πŸ¦€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published