(image_path: &Path)
| 748 | } |
| 749 | |
| 750 | fn temporary_injection_path(image_path: &Path) -> PathBuf { |
| 751 | let n = INJECTION_COUNTER.fetch_add(1, Ordering::Relaxed); |
| 752 | let parent = image_path.parent().unwrap_or_else(|| Path::new(".")); |
| 753 | parent.join(format!( |
| 754 | ".openshell-rootfs-inject-{}-{n}", |
| 755 | std::process::id() |
| 756 | )) |
| 757 | } |
| 758 | |
| 759 | #[allow(clippy::similar_names)] |
| 760 | fn ensure_sandbox_guest_user( |
no outgoing calls
no test coverage detected