relabel

Function relabel 

Source
pub(crate) fn relabel(
    root: &Dir,
    metadata: &Metadata,
    path: &Utf8Path,
    as_path: Option<&Utf8Path>,
    policy: &SePolicy,
) -> Result<()>
Expand description

Given the policy, relabel the target file or directory. Optionally, an override for the path can be provided to set the label as if the target has that filename.