pacman/scripts
Eli Schwartz 39319c1860 libmakepkg: check for invalid tags in git
As per https://lists.archlinux.org/pipermail/arch-general/2017-July/043876.html
git doesn't check that the tag name matches what an annotated tag object
*thinks* it should be called. This is a bit of a theoretical attack and
some would argue that we should always use commits since upstream can
legitimately change a tag, but nevertheless this can result in a
downgrade attack if the git download transport was manipulated or the
upstream repository hacked.

So, check the tag blob to make sure the tag actually matches the name we
used for `git checkout`.

This really should be fixed in git itself, rather than forcing all
downstream users of git verify-tag to implement their own checks, but
the git developers disagree, see the discussion surrounding
https://public-inbox.org/git/xmqqk2hzldx8.fsf@gitster.mtv.corp.google.com/

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2017-09-13 14:20:35 +10:00
..
completion Move bash/zsh completion out of contrib 2016-10-10 10:38:05 +10:00
libmakepkg libmakepkg: check for invalid tags in git 2017-09-13 14:20:35 +10:00
library makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
po makepkg: warn about dotfiles in package root 2017-01-04 13:59:14 +10:00
.gitignore makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
Makefile.am makepkg: warn about dotfiles in package root 2017-01-04 13:59:14 +10:00
makepkg-template.pl.in Update copyright years 2017-01-04 13:59:14 +10:00
makepkg.sh.in makepkg: add more information to .BUILDINFO 2017-07-06 13:57:27 +10:00
pacman-db-upgrade.sh.in Update copyright years 2017-01-04 13:59:14 +10:00
pacman-key.sh.in Update copyright years 2017-01-04 13:59:14 +10:00
pkgdelta.sh.in Replace @SIZECMD@ with POSIX-compatible command 2017-04-04 12:21:20 +10:00
repo-add.sh.in Replace @SIZECMD@ with POSIX-compatible command 2017-04-04 12:21:20 +10:00
wrapper.sh.in Update copyright years 2017-01-04 13:59:14 +10:00