Visitar URL original
tp: --debuginfod rejects DEBUGINFOD_URLS containing ima: policy tags · Issue #8633 · google/perfetto · GitHub
Skip to content

tp: --debuginfod rejects DEBUGINFOD_URLS containing ima: policy tags #8633

Open

Description

@LalitMaganti

trace_processor_shell bundle --debuginfod (and util symbolize --debuginfod) fails on a stock Fedora machine with:

debuginfod URLs must be HTTP(S) server roots

Fedora sets DEBUGINFOD_URLS from /etc/debuginfod/*.urls in /etc/profile.d/debuginfod.sh. On Fedora 44 that gives:

DEBUGINFOD_URLS=ima:enforcing https://debuginfod.fedoraproject.org/ ima:ignore

The ima:enforcing and ima:ignore entries are signature-verification policy tags, not servers. They are part of the documented DEBUGINFOD_URLS format: each tag applies to the URLs after it, up to the next tag. See the $DEBUGINFOD_URLS section of debuginfod-client-config(7):
https://sourceware.org/git/?p=elfutils.git;a=blob;f=doc/debuginfod-client-config.7

ResolveDebuginfodOptions in src/trace_processor/util/symbolizer/debuginfod.cc treats every whitespace-separated token as a URL, so the tags make it reject the whole list. The only workaround is to pass --debuginfod-urls https://debuginfod.fedoraproject.org/ explicitly.

Trace processor should parse the format the way elfutils does: skip ima: tags and use the URLs. It doesn't verify IMA signatures, so when a URL sits under ima:enforcing it should warn that downloads from it are not verified, rather than silently dropping the policy.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions