We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29f4f2b commit 34a3d6cCopy full SHA for 34a3d6c
README.md
@@ -78,7 +78,7 @@ use a `BPF_PROG_TYPE_CGROUP_SKB` program with aya:
78
```rust
79
use std::fs::File;
80
use aya::Ebpf;
81
-use aya::programs::{CgroupSkb, CgroupSkbAttachType};
+use aya::programs::{CgroupSkb, CgroupSkbAttachType, CgroupAttachMode};
82
83
// load the BPF code
84
let mut ebpf = Ebpf::load_file("ebpf.o")?;
@@ -92,7 +92,7 @@ ingress.load()?;
92
// attach the program to the root cgroup. `ingress_filter` will be called for all
93
// incoming packets.
94
let cgroup = File::open("/sys/fs/cgroup/unified")?;
95
-ingress.attach(cgroup, CgroupSkbAttachType::Ingress)?;
+ingress.attach(cgroup, CgroupSkbAttachType::Ingress, CgroupAttachMode::AllowOverride)?;
96
```
97
98
## Contributing
0 commit comments