pacman/scripts/libmakepkg
David Runge 86ec26b2d3
makepkg: Improve robustness of signature verification by limiting terms
The output of
`gpg --quiet --batch --status-fd /dev/stdout --verify <signature_file> <file> 2> /dev/null`
or
`git verify-commit --raw <commit> 2>&1`
may contain binary data, if the signature has been created with an
OpenPGP implementation, that e.g. makes use of notations.
If the notation string (see `NOTATION_DATA` in /usr/share/doc/gnupg/
DETAILS) contains a trailing binary char, this will break signature
verification, as any following entry (e.g. `VALIDSIG`) will be offset.

As we are only making use of a narrow set of terms from the statusfile
(namely `NEWSIG`, `GOODSIG`, `EXPSIG`, `EXPKEYSIG`, `REVKEYSIG`,
`BADSIG`, `ERRSIG`, `VALIDSIG`, `TRUST_UNDEFINED`, `TRUST_NEVER`,
`TRUST_MARGINAL`, `TRUST_FULLY`, `TRUST_ULTIMATE`), we are applying a
filter, so that only understood terms are written to the file.

Signed-off-by: David Runge <dvzrv@archlinux.org>
2024-02-04 10:06:42 +01:00
..
autodep Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
buildenv Fix typo in exporting RUSTFLAGS 2024-01-14 08:50:29 +10:00
executable Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
integrity makepkg: Improve robustness of signature verification by limiting terms 2024-02-04 10:06:42 +01:00
lint_config Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
lint_package Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
lint_pkgbuild Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
reproducible Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
source Omit trailing .git from url when comparing git remote urls. 2023-11-04 10:09:59 +10:00
tidy strip: don't create debug packages from .a files 2023-12-17 16:04:45 +01:00
util debugflags: ensure to only append debug flags once when building 2023-11-17 18:56:44 +01:00
.gitignore libmakepkg: fix .gitignore to simply ignore all generated .sh files 2017-12-07 15:37:20 +10:00
autodep.sh.in Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
buildenv.sh.in Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
executable.sh.in Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
integrity.sh.in Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
lint_config.sh.in Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
lint_package.sh.in Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
lint_pkgbuild.sh.in Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
meson.build libmakepkg: automatically add library sonames to provides 2021-12-29 15:20:05 +10:00
reproducible.sh.in Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
source.sh.in Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
srcinfo.sh.in Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
tidy.sh.in Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00
util.sh.in Rename LIBRARY to MAKEPKG_LIBRARY 2023-11-04 00:02:17 +00:00