pacman/scripts
Eli Schwartz f492339035 pacman-key: make sure we actually use the Web of Trust, which GnuPG doesn't.
By default, the latest versions of GnuPG disable the Web of Trust and
refuse to import signatures from public keyservers. This is to prevent
denial of service attacks, because refusing to import signatures only if
the key size is too big, is apparently too silly to consider.

Either way, pacman needs the WoT. If pacman imports a key at all, it
means everything failed and we are in fallback mode, trying to overcome
a shortcoming in the availability of keys in the keyring package.
(This commonly means the user needs to acquire a new key during the same
transaction that updates archlinux-keyring.)
In order for that new key to be usable, it *must* also import signatures
from the Master Keys.

I don't give credence to this supposed DoS, since the worst case
scenario is nothing happening and needing to CTRL+C in order to exit the
program. In the case of pacman, this is better than being unable to
install anything at all (which is gnupg doing a much more harmful DoS to
pacman), and in the already unusual case where something like
--refresh-keys is being used directly instead of depending on the
keyring package itself, gnupg supports WKD out of the box and will
prefer that for people whose keys are marketed as being non-DOSable.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2019-10-07 13:23:11 +10:00
..
completion bash-completion: use POSIX character classes in regular expressions 2019-06-26 10:15:47 +10:00
libmakepkg makepkg: add rust support for *FLAGS and debug-prefix-map 2019-10-07 11:48:41 +10:00
library scripts/library: fix typo in README 2018-12-10 11:12:27 +10:00
po Prepare translations for next release 2019-08-12 11:42:10 +10:00
.gitignore libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
libmakepkg.pc.in libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
Makefile.am autotools: distribute meson files 2019-10-04 11:25:48 +10:00
makepkg-template.pl.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
makepkg.sh.in makepkg: do not exit immediately on dependency install failures 2019-06-25 21:56:58 +10:00
meson.build libmakepkg: install pkg-config file 2019-05-08 12:46:33 +10:00
pacman-db-upgrade.sh.in scripts: protect against unintended glob matching in [[ ]] RHS 2019-05-08 12:45:26 +10:00
pacman-key.sh.in pacman-key: make sure we actually use the Web of Trust, which GnuPG doesn't. 2019-10-07 13:23:11 +10:00
repo-add.sh.in repo-add: Add --prevent-downgrade option 2019-05-28 11:08:21 +10:00
wrapper.sh.in scripts: pass on options such as set -x to child processes 2018-08-10 15:20:40 +10:00