]> git.ipfire.org Git - thirdparty/elfutils.git/commit
PR31862: debuginfod: client to cache x-debuginfod-* headers
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 5 Mar 2025 20:23:49 +0000 (15:23 -0500)
committerFrank Ch. Eigler <fche@elastic.org>
Wed, 5 Mar 2025 20:23:49 +0000 (15:23 -0500)
commit31867d468c10d26ee13efb93f5d7ddf2bcadf253
treea108215c32489080b3e6a22d64702ee22d7f2339
parentc65c467e83431ec5189f65fe11ad9a01d82af217
PR31862: debuginfod: client to cache x-debuginfod-* headers

This feature allows the extra http headers from debuginfod to be saved
into the client cache, and also thus replayed to clients.  This way
they can perform IMA verification again, if they like, or a federating
caching intermediate debuginfod server can replay the headers it
received previously from upstream to future downstream.  The headers
are placed adjacent to the payload files .cache/debuginfod/BUILDID/PAYLOAD
as .cache/debuginfod/BUILDID/hdr-PAYLOAD.  They are aged the same
atime-based way.

Testing via an extension of a previous small test, and hand-running both
client & server code under valgrind.  No memcheck errors reported.

Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
debuginfod/debuginfod-client.c
tests/run-debuginfod-artifact-running.sh