From: Quentin Monnet <qmo@kernel.org>
To: Alan Maguire <alan.maguire@oracle.com>
Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org,
martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org,
yonghong.song@linux.dev, john.fastabend@gmail.com,
kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com,
jolsa@kernel.org, terrelln@fb.com, dsterba@suse.com,
acme@redhat.com, irogers@google.com, leo.yan@arm.com,
namhyung@kernel.org, tglozar@redhat.com, blakejones@google.com,
yuzhuo@google.com, charlie@rivosinc.com, ebiggers@kernel.org,
bpf@vger.kernel.org
Subject: Re: [RFC bpf-next 2/2] bpftool: Use libcrypto feature test to optionally support signing
Date: Wed, 29 Oct 2025 11:40:29 +0100 [thread overview]
Message-ID: <fb2fd1cd-239d-4783-8b24-66af0e754a47@kernel.org> (raw)
In-Reply-To: <20251029094631.1387011-3-alan.maguire@oracle.com>
2025-10-29 09:46 UTC+0000 ~ Alan Maguire <alan.maguire@oracle.com>
> New libcrypto test verifies presence of openssl3 needed for BPF
> signing; use that feature to conditionally compile signing-related
> code so bpftool build will not break in the absence of libcrypto v3.
Hi Alan, thanks for this work!
>
> Fixes: 40863f4d6ef2 ("bpftool: Add support for signing BPF programs")
> Suggested-by: Quentin Monnet <qmo@kernel.org>
This is not exactly what I suggested, I mentioned adding such a feature
check and printing a more user-friendly error message at build time if
the dependency is missing, not leaving out the program signing feature.
I've got reservations about the current approach: my concern is that
people packaging bpftool may prefer to compile and ship it without
program signing, if their build environment does not include the OpenSSL
dependency. But it seems to me that it will be an important feature
going forward, and that bpftool should ship with it.
Regarding the OpenSSL v3 vs. older version concern (from the build
failure report thread):
> One issue here is that some distros package openssl v3 such that the
> #include files are in /usr/include/openssl3 and libraries in
> /usr/lib64/openssl3 so that older versions can co-exist. Maybe we could
> figure out a feature test that handles that too?
In that case, we should have a feature probe that gives us the right
build parameters to ensure that v3, and not some older version, is
picked when building bpftool? (We could imagine falling back to an older
version, but I see v3.0 is now the oldest OpenSSL supported version so
it's probably not worth it?)
Best regards,
Quentin
next prev parent reply other threads:[~2025-10-29 10:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-29 9:46 [RFC bpf-next 0/2] bpftool signing feature check Alan Maguire
2025-10-29 9:46 ` [RFC bpf-next 1/2] tools-build: Add feature test for openssl3 Alan Maguire
2025-10-29 9:46 ` [RFC bpf-next 2/2] bpftool: Use libcrypto feature test to optionally support signing Alan Maguire
2025-10-29 10:15 ` bot+bpf-ci
2025-10-29 10:40 ` Quentin Monnet [this message]
2025-10-29 11:22 ` Alan Maguire
2025-10-30 13:58 ` Quentin Monnet
2025-10-31 10:11 ` bpftool BPF signing supported using openssl v1? (Was Re: [RFC bpf-next 2/2] bpftool: Use libcrypto feature test to optionally support signing) Alan Maguire
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=fb2fd1cd-239d-4783-8b24-66af0e754a47@kernel.org \
--to=qmo@kernel.org \
--cc=acme@redhat.com \
--cc=alan.maguire@oracle.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=blakejones@google.com \
--cc=bpf@vger.kernel.org \
--cc=charlie@rivosinc.com \
--cc=daniel@iogearbox.net \
--cc=dsterba@suse.com \
--cc=ebiggers@kernel.org \
--cc=eddyz87@gmail.com \
--cc=haoluo@google.com \
--cc=irogers@google.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kpsingh@kernel.org \
--cc=leo.yan@arm.com \
--cc=martin.lau@linux.dev \
--cc=namhyung@kernel.org \
--cc=sdf@fomichev.me \
--cc=song@kernel.org \
--cc=terrelln@fb.com \
--cc=tglozar@redhat.com \
--cc=yonghong.song@linux.dev \
--cc=yuzhuo@google.com \
/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