`setcap` grammar form of [`MEMTRACK_REQUIRED_CAPS`]: the lowercase cap names (libcap renders them lowercase) joined with commas and the `+ep` effective+permitted flag. Derived from the enum so the two never drift.
()
| 28 | /// (libcap renders them lowercase) joined with commas and the `+ep` |
| 29 | /// effective+permitted flag. Derived from the enum so the two never drift. |
| 30 | pub(crate) fn memtrack_setcap_spec() -> String { |
| 31 | let caps = MEMTRACK_REQUIRED_CAPS |
| 32 | .iter() |
| 33 | .map(|c| c.to_string().to_lowercase()) |
| 34 | .collect::<Vec<_>>() |
| 35 | .join(","); |
| 36 | format!("{caps}+ep") |
| 37 | } |
| 38 | |
| 39 | /// The binary that carries the eBPF capabilities: a copy of this executable, so |
| 40 | /// the runner itself never runs in glibc's secure-execution mode, which strips |
no outgoing calls
no test coverage detected