From: Lennart Poettering Date: Wed, 30 Nov 2022 17:55:05 +0000 (+0100) Subject: dissect: pick up gpt partition flags X-Git-Tag: v253-rc1~381 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d90b03f80d7d2a104783e0582a33a29e8a05cbca;p=thirdparty%2Fsystemd.git dissect: pick up gpt partition flags Let's store the GPT partition flags in the dissected partition info. Right now we won't actually use them for anything yet, but later we'll add that, when enforcing policy on dissection. --- diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index 112781a9df3..4dd2c2c3a9c 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -934,6 +934,7 @@ static int dissect_image( .mount_node_fd = TAKE_FD(mount_node_fd), .offset = (uint64_t) start * 512, .size = (uint64_t) size * 512, + .gpt_flags = pflags, }; } diff --git a/src/shared/dissect-image.h b/src/shared/dissect-image.h index 2f77228a1d5..5402e4fca2e 100644 --- a/src/shared/dissect-image.h +++ b/src/shared/dissect-image.h @@ -33,6 +33,7 @@ struct DissectedPartition { int mount_node_fd; uint64_t size; uint64_t offset; + uint64_t gpt_flags; }; #define DISSECTED_PARTITION_NULL \