From: Peter Korsgaard <peter@korsgaard.com>
To: Fiona Klute <fiona.klute@gmx.de>
Cc: Fiona Klute via buildroot <buildroot@buildroot.org>
Subject: Re: [Buildroot] [PATCH next 1/3] fs/common.mk: add optional hook to build a verity hash tree
Date: Tue, 01 Sep 2026 08:41:05 +0200 [thread overview]
Message-ID: <878q5lh3su.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <76f38e09-f5c4-4b0c-8397-01061d7fbced@gmx.de> (Fiona Klute's message of "Mon, 31 Aug 2026 23:10:21 +0200")
>>>>> "Fiona" == Fiona Klute <fiona.klute@gmx.de> writes:
Hi,
> How about an _EXTRA_ARGS option? I think adding options for all
> possible parameters would be a lot of code for little gain.
Possibly, but should that then be per-fs or global? I wonder if it is
worth the complexity to add this logic versus how fairly simple it is to
just do it with whatever options you want in a post-image script.
> For hash algorithm a specific option might sense if we could use that
> to ensure the matching hash is enabled in the kernel. But that'd
> require adding LINUX_CONFIG_FIXUPS infrastructure for fs/, not sure if
> worth it? Though enabling filesystems selected for rootfs in the
> kernel could be useful, too (I've been there, changed rootfs and
> forgot to enable it in the kernel – not often, but it happens).
I would be OK with that. These fixups are a bit icky though as we do not
know what kernel version will be used and the dependencies may change
over time - So maintenance and testing is not so trivial.
> The one reason I can imagine wanting to set uuid/salt is if someone
> wants a byte-identical verity partition. fs/erofs sets all-zero UUID,
> which we could do for verity too, but I'm not sure what the security
> implications of a fixed (or pseudorandom?) salt would be.
Yes, it is also only in the context of reproducible builds that I have
ever used a fixed uuid/salt.
Security wise, as this is about hashing rather than encryption I *THINK*
it is fine as long as the hashing algorithm is strong enough (E.G. you
would need find same-size collisions).
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-09-01 6:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 12:51 [Buildroot] [PATCH next 1/3] fs/common.mk: add optional hook to build a verity hash tree Fiona Klute via buildroot
2026-08-31 12:51 ` [Buildroot] [PATCH next 2/3] fs/squashfs: add option to build verity tree Fiona Klute via buildroot
2026-08-31 12:51 ` [Buildroot] [PATCH next 3/3] support/testing/tests/fs/test_squashfs.py: add test with dm-verity Fiona Klute via buildroot
2026-08-31 19:16 ` [Buildroot] [PATCH next 1/3] fs/common.mk: add optional hook to build a verity hash tree Peter Korsgaard
2026-08-31 21:10 ` Fiona Klute via buildroot
2026-09-01 6:41 ` Peter Korsgaard [this message]
2026-09-01 10:26 ` Fiona Klute via buildroot
2026-09-01 11:38 ` Peter Korsgaard
2026-09-01 12:53 ` Fiona Klute via buildroot
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=878q5lh3su.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@buildroot.org \
--cc=fiona.klute@gmx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.