From: akuster808 <akuster808@gmail.com>
To: Paulo Neves <ptsneves@gmail.com>, yocto@lists.yoctoproject.org
Cc: Christer Fletcher <christer.fletcher@inter.ikea.com>,
Paulo Neves <paulo.neves1@inter.ikea.com>
Subject: Re: [yocto] [meta-security][PATCH] dmverity: Make use of DATA_BLOCK_SIZE variable in initrdscript.
Date: Tue, 28 Sep 2021 16:31:33 -0700 [thread overview]
Message-ID: <8d512aaf-e62e-0c36-ca03-5bfa5a922d78@gmail.com> (raw)
In-Reply-To: <20210923154549.4108832-1-ptsneves@gmail.com>
merged.
On 9/23/21 8:45 AM, Paulo Neves wrote:
> From: Christer Fletcher <christer.fletcher@inter.ikea.com>
>
> DATA_BLOCK_SIZE variable was set in dm-verity-img.bbclass at build
> time but the initrdscript was not updated to pass the DATA_BLOCK_SIZE
> to the veritysetup. Now the functionality is complete.
>
> Signed-off-by: Paulo Neves <paulo.neves1@inter.ikea.com>
> ---
> recipes-core/initrdscripts/initramfs-framework-dm/dmverity | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/recipes-core/initrdscripts/initramfs-framework-dm/dmverity b/recipes-core/initrdscripts/initramfs-framework-dm/dmverity
> index 888052c..c815940 100644
> --- a/recipes-core/initrdscripts/initramfs-framework-dm/dmverity
> +++ b/recipes-core/initrdscripts/initramfs-framework-dm/dmverity
> @@ -6,6 +6,7 @@ dmverity_enabled() {
>
> dmverity_run() {
> DATA_SIZE="__not_set__"
> + DATA_BLOCK_SIZE="__not_set__"
> ROOT_HASH="__not_set__"
>
> . /usr/share/misc/dm-verity.env
> @@ -49,7 +50,7 @@ dmverity_run() {
> done
>
> veritysetup \
> - --data-block-size=1024 \
> + --data-block-size=${DATA_BLOCK_SIZE} \
> --hash-offset=${DATA_SIZE} \
> create rootfs \
> ${RDEV} \
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#54813): https://lists.yoctoproject.org/g/yocto/message/54813
> Mute This Topic: https://lists.yoctoproject.org/mt/85817076/3616698
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [akuster808@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
prev parent reply other threads:[~2021-09-28 23:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-23 15:45 [meta-security][PATCH] dmverity: Make use of DATA_BLOCK_SIZE variable in initrdscript Paulo Neves
2021-09-28 23:31 ` akuster808 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8d512aaf-e62e-0c36-ca03-5bfa5a922d78@gmail.com \
--to=akuster808@gmail.com \
--cc=christer.fletcher@inter.ikea.com \
--cc=paulo.neves1@inter.ikea.com \
--cc=ptsneves@gmail.com \
--cc=yocto@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox