summaryrefslogtreecommitdiff
path: root/src/shared/dissect-image.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-09-09 13:46:01 +0200
committerLennart Poettering <lennart@poettering.net>2021-09-28 17:02:54 +0200
commit88b3300fdc64d5320fb50d0f369d3fc0885e15e8 (patch)
treed392ab269b32c6611bf663f75ed70e4c2b3f39e5 /src/shared/dissect-image.h
parent8ee9615e10f449dcabbd5e27c960c26857943832 (diff)
downloadsystemd-88b3300fdc64d5320fb50d0f369d3fc0885e15e8.tar.gz
dissect-image: load embedded verity signature info from image
This adds support for actually using embedded signature data from partitions.
Diffstat (limited to 'src/shared/dissect-image.h')
-rw-r--r--src/shared/dissect-image.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/dissect-image.h b/src/shared/dissect-image.h
index 84b14cae80..635ca5b76c 100644
--- a/src/shared/dissect-image.h
+++ b/src/shared/dissect-image.h
@@ -28,6 +28,8 @@ struct DissectedPartition {
char *decrypted_node;
char *decrypted_fstype;
char *mount_options;
+ uint64_t size;
+ uint64_t offset;
};
typedef enum PartitionDesignator {
@@ -217,6 +219,8 @@ PartitionDesignator partition_designator_from_string(const char *name) _pure_;
int verity_settings_load(VeritySettings *verity, const char *image, const char *root_hash_path, const char *root_hash_sig_path);
void verity_settings_done(VeritySettings *verity);
+int dissected_image_load_verity_sig_partition(DissectedImage *m, int fd, VeritySettings *verity);
+
bool dissected_image_verity_candidate(const DissectedImage *image, PartitionDesignator d);
bool dissected_image_verity_ready(const DissectedImage *image, PartitionDesignator d);
bool dissected_image_verity_sig_ready(const DissectedImage *image, PartitionDesignator d);