]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: strip the root from filenames when generating hwdb.bin (#43062)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 21 Jul 2026 03:19:00 +0000 (12:19 +0900)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2026 03:19:00 +0000 (12:19 +0900)
The modern hwdb.bin format contains the filenames of the input data that
makes up the database. This is useful but in offline builds where --root
is used, the filenames are the full build paths including the specified
root. This introduces build paths and thus information leakage and
non-reproducible data.

Solve this by stripping the root prefix off the original path when
passing to import_file.


Trivial merge