pub(crate) fn atomic_replace_labeled<F>(
root: &Dir,
destname: impl AsRef<Utf8Path>,
mode: Mode,
policy: Option<&SePolicy>,
f: F,
) -> Result<()>Expand description
A wrapper for atomically writing a file, also optionally setting a SELinux label.