[PATCH] debuginfod: Check the DEBUGINFOD_URLS environment variable early in client.

Mark Wielaard mark@klomp.org
Wed Dec 11 21:34:00 GMT 2019


On Mon, 2019-12-09 at 19:49 +0100, Mark Wielaard wrote:
> 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.

This was tested in Fedora and Frank independently came up with almost
the same fix. Pushed to master.

Cheers,

Mark



More information about the Elfutils-devel mailing list