MCPcopy Create free account
hub / github.com/bootc-dev/bootc / newroot

Function newroot

crates/tmpfiles/src/lib.rs:562–566  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

560 }
561
562 fn newroot() -> Result<cap_std_ext::cap_tempfile::TempDir> {
563 let root = cap_std_ext::cap_tempfile::tempdir(cap_std::ambient_authority())?;
564 root.create_dir_all(TMPFILESD)?;
565 Ok(root)
566 }
567
568 fn mock_userdb() -> uzers::mock::MockUsers {
569 let testuid = rustix::process::getuid();

Callers 2

test_log_regfileFunction · 0.70

Calls

no outgoing calls

Tested by 2

test_log_regfileFunction · 0.56