pacman/scripts
Eli Schwartz 635a9c911c pacman-key: just accept one file to verify, and enforce detached sigs
Simply pass options on to gpg the same way gpg uses them -- no looping
through and checking lots of signatures.

This prevents a situation where the signature file to be verified is
manipulated to contain an embedded signature which is valid, but not a
detached signature for the file you are actually trying to verify.

gpg does not offer an option to verify many files at once by naming each
signature/file pair, and there's no reason for us to do so either, since
it would be quite tiresome to do so.

In the event that there is no signature/file pair specified to
pacman-key itself,

- preserve gpg's behavior, *if* the matching file does not exist, by
 - assuming the signature is an embedded signature
- deviate from gpg's behavior, by
 - offering a security warning about which one is happening
 - when there is an embedded signature *and* a matching detached file,
   assume the latter is desired

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2018-11-03 21:56:09 +10:00
..
completion bash-completion: disable completions for pacman --search operations 2018-10-21 19:33:57 +10:00
libmakepkg Add meson.build files to build with meson 2018-11-02 03:16:34 -04:00
library Port scripts to use libmakepkg's messaging code. 2018-10-21 20:22:19 +10:00
po Add meson.build files to build with meson 2018-11-02 03:16:34 -04:00
.gitignore makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
Makefile.am Port scripts to use libmakepkg's messaging code. 2018-10-21 20:22:19 +10:00
makepkg-template.pl.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
makepkg.sh.in makepkg: send messages to stdout rather than stderr 2018-10-21 20:20:17 +10:00
meson.build meson: add a wrapper to bootstrap scripts from within build dir 2018-11-02 03:16:34 -04:00
pacman-db-upgrade.sh.in Port scripts to use libmakepkg's messaging code. 2018-10-21 20:22:19 +10:00
pacman-key.sh.in pacman-key: just accept one file to verify, and enforce detached sigs 2018-11-03 21:56:09 +10:00
pkgdelta.sh.in Port scripts to use libmakepkg's messaging code. 2018-10-21 20:22:19 +10:00
repo-add.sh.in Port scripts to use libmakepkg's messaging code. 2018-10-21 20:22:19 +10:00
wrapper.sh.in scripts: pass on options such as set -x to child processes 2018-08-10 15:20:40 +10:00