MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / memtrack_setcap_spec

Function memtrack_setcap_spec

src/executor/memory/setup.rs:30–37  ·  view source on GitHub ↗

`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.

()

Source from the content-addressed store, hash-verified

28/// (libcap renders them lowercase) joined with commas and the `+ep`
29/// effective+permitted flag. Derived from the enum so the two never drift.
30pub(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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected