Skip to main content

verify_checksums

Function verify_checksums 

Source
pub fn verify_checksums(plugin: &LoadedManifest) -> Result<(), PluginError>
Expand description

Verify every checksums entry of a manifest.

Limits (see docs/plugins.md): the hashes live in the manifest they protect, so they detect corruption and partial edits, not an attacker who can rewrite the plugin directory; files are hashed and then executed by path. Keep plugin directories writable only by the operator. Symlinked files are rejected so a pinned path cannot be redirected outside the plugin directory.