]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: Check the DEBUGINFOD_URLS environment variable early in client.
authorMark Wielaard <mark@klomp.org>
Mon, 9 Dec 2019 18:38:19 +0000 (19:38 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 11 Dec 2019 21:31:00 +0000 (22:31 +0100)
commitef99c782042ea6f1d47b94a511dbf667b0d474cb
tree821850a442e050aa46cbd31463f55e44efb284a1
parentcf1b5fe170fa24f32871ef284ff2968c73816f98
debuginfod: Check the DEBUGINFOD_URLS environment variable early in client.

If the debuginfod-client isn't configured we should do as little
as possible. Simply return early with ENOSYS if no servers are
configured. This means we won't check

This does change the behavior of the debuginfod_find calls slightly.
Previously we would setup and check the cache if the given build-id
was valid. Which might have provided a result if an earlier client
had run with the same cache and valid server URLs which knew about
that particular build-id. Now we don't return any cached results
unless at least one server is configured.

This prevents selinux errors when the library is used in a confined
setup.

Signed-off-by: Mark Wielaard <mark@klomp.org>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c