`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.
()
| 29 | /// (libcap renders them lowercase) joined with commas and the `+ep` |
| 30 | /// effective+permitted flag. Derived from the enum so the two never drift. |
| 31 | fn memtrack_setcap_spec() -> String { |
| 32 | let caps = MEMTRACK_REQUIRED_CAPS |
| 33 | .iter() |
| 34 | .map(|c| c.to_string().to_lowercase()) |
| 35 | .collect::<Vec<_>>() |
| 36 | .join(","); |
| 37 | format!("{caps}+ep") |
| 38 | } |
| 39 | |
| 40 | fn memtrack_path() -> Option<PathBuf> { |
| 41 | which::which(MEMTRACK_COMMAND).ok() |
no outgoing calls
no test coverage detected