Whether the installed memtrack binary already carries the required capabilities.
()
| 43 | |
| 44 | /// Whether the installed memtrack binary already carries the required capabilities. |
| 45 | pub fn has_memtrack_capabilities() -> bool { |
| 46 | memtrack_path() |
| 47 | .is_some_and(|path| binary_has_capabilities(&path, memtrack_required_caps_mask())) |
| 48 | } |
| 49 | |
| 50 | /// Grant memtrack the capabilities it needs to run without sudo. |
| 51 | /// |
no test coverage detected