set_security_selinux_path

Function set_security_selinux_path 

Source
pub(crate) fn set_security_selinux_path(
    root: &Dir,
    path: &Utf8Path,
    label: &[u8],
) -> Result<()>
Expand description

Directly set the security.selinux extended attribute on the target path. Symbolic links are not followed for the target.

Note that this API will work even if SELinux is disabled.