Function selinux_sys::selinux_restorecon [−][src]
pub unsafe extern "C" fn selinux_restorecon(
pathname: *const c_char,
restorecon_flags: c_uint
) -> c_int
selinux_restorecon - Relabel files. @pathname: specifies file/directory to relabel. @restorecon_flags: specifies the actions to be performed when relabeling.
selinux_restorecon(3) will automatically call selinux_restorecon_default_handle(3) and selinux_restorecon_set_sehandle(3) first time through to set the selabel_open(3) parameters to use the currently loaded policy file_contexts and request their computed digest.
Should other selabel_open(3) parameters be required see selinux_restorecon_set_sehandle(3).