feat(packages): each rpm names the source rpm it was built from #80

Merged
christianmanivong merged 1 commits from fix/rpm-source-package into main 2026-11-12 18:07:59 +00:00
Owner

The rpm query now reads %{SOURCERPM}. Each package carries the source rpm's name as source_rpm (perf -> kernel), and leaves it out where rpm names none (gpg-pubkey).

Why: perf, python3-perf and bpftool are built from the kernel's source rpm, and Red Hat's VEX lists them in every kernel CVE. On build-arm-01 (Oracle Linux 9.8) that came to 18 532 findings on these three tools alone. netOrk tells them apart from user space by their source (NetOrk/netork#2394).

Why not source_package: netOrk reads dpkg's source_package as the name a distribution files its verdicts under. That holds for Debian, but not for Oracle or Red Hat, whose records name the binary.

Tests: TestRpmPackages, TestSourceRpmName.

The rpm query now reads `%{SOURCERPM}`. Each package carries the source rpm's name as `source_rpm` (`perf` -> `kernel`), and leaves it out where rpm names none (`gpg-pubkey`). **Why:** perf, python3-perf and bpftool are built from the kernel's source rpm, and Red Hat's VEX lists them in every kernel CVE. On build-arm-01 (Oracle Linux 9.8) that came to 18 532 findings on these three tools alone. netOrk tells them apart from user space by their source (NetOrk/netork#2394). **Why not `source_package`:** netOrk reads dpkg's `source_package` as the name a distribution files its verdicts under. That holds for Debian, but not for Oracle or Red Hat, whose records name the binary. Tests: `TestRpmPackages`, `TestSourceRpmName`.
christianmanivong added 1 commit 2026-11-12 18:04:36 +00:00
feat(packages): each rpm names the source rpm it was built from
driver / lint (pull_request) Successful in 15s
driver / standard (pull_request) Successful in 15s
driver / types (pull_request) Successful in 1m4s
driver / test (3.13) (pull_request) Successful in 1m5s
driver / test (3.12) (pull_request) Successful in 1m11s
driver / lowest (pull_request) Successful in 50s
driver / build (pull_request) Successful in 39s
driver / security (pull_request) Successful in 1m35s
CI / driver (pull_request) Successful in 2m55s
driver / publish (pull_request) Skipped
4ba81cc90e
perf, python3-perf and bpftool are built from the kernel's source rpm, and
Red Hat's VEX lists them in every kernel CVE: 18 532 findings on an Oracle
Linux 9 host's three kernel tools alone. The rpm query now reads
%{SOURCERPM}, and each package carries its name as `source_rpm` (`perf` ->
`kernel`), absent where rpm names none (`gpg-pubkey`).

Not dpkg's `source_package`: netOrk reads that as the name a distribution
files its verdicts under, which holds for Debian and not for Oracle or Red
Hat, whose records name the binary (NetOrk/netork#2394).
christianmanivong merged commit 5f6595d160 into main 2026-11-12 18:07:59 +00:00
christianmanivong deleted branch fix/rpm-source-package 2026-11-12 18:07:59 +00:00
Sign in to join this conversation.