pub(crate) fn ensure_dir_labeled(
root: &Dir,
destname: impl AsRef<Utf8Path>,
as_path: Option<&Utf8Path>,
mode: Mode,
policy: Option<&SePolicy>,
) -> Result<()>Expand description
A wrapper for creating a directory, also optionally setting a SELinux label.