Skip to main content

classify_installed_profile

Function classify_installed_profile 

Source
pub fn classify_installed_profile(
    read: Result<Vec<u8>, Error>,
) -> InstalledProfileState
Expand description

Classifies a read of SEALED_APPARMOR_PROFILE_PATH against the shipped digest.

Takes the already-performed read rather than the path, so all four outcomes are unit-testable with no filesystem mutation and no privilege.