]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: (verity) rewrite to use hookset API
authorKarel Zak <kzak@redhat.com>
Thu, 8 Sep 2022 10:37:52 +0000 (12:37 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 3 Jan 2023 11:58:42 +0000 (12:58 +0100)
commit7f5f350b62b814d2d052b60a5332b17bda31fb21
tree52f4a01512674e04986690dea206d41521f78a5c
parent71e5489396bd647d877f402cb55e3cf77bffcaae
libmount: (verity) rewrite to use hookset API

* initialize only when relevant verity.* options detected

* setup verity device by prepare-source hook

* add post-mount hook to setup deferred deactivation

* deactivate the device on error (when de-initialize the hookset)

* call dlopen/dlclose only once, share symbols between all hooks

* remove verity specific code from rest of libmount

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/Makemodule.am
libmount/src/context.c
libmount/src/context_mount.c
libmount/src/hook_veritydev.c [moved from libmount/src/context_veritydev.c with 56% similarity]
libmount/src/hooks.c
libmount/src/mountP.h