Skip to content

add hook script to get notifications of verity corruption detection #24

@mikemccracken

Description

@mikemccracken

after #23 merges, I would like to add a mount config option (and expose it as a flag to atomfs mount):
atomfs mount --verity-hook=myscript.sh

so that (when root) atomfs installs a udev rule that will run myscript.sh when a device that is used by this mount is found to be corrupt, with arguments listing both the device that was used and all the OCI images that are currently mounted that are impacted.
(this second part requires adding some more metadata aside from what was added in #23

Umount will delete the rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions