ports/Mk/Scripts
Mathieu Arnold 13a7d55681 Force ports depending on a fetch target to actually run checksum.
This prevents an improbable MITM attack on dependencies where the target
is "fetch" and the port is built manuallt.  (Which means a port depends
on a dependency being fetched, but not built or anything else.)  In this
case, as the target is only "fetch", the distribution files of the
dependency are not checked against the dependency's distinfo file.  One
could, in theory, impersonate the dependency's master site and provide a
malicious distribution file.

The ports that could in theory be affected are russian/gd, ukrainian/gd,
and ukrainian/webalizer.  They are only affected when building manually,
as when building with poudriere, the *-depends target do not have
network access, and the build would fail if the distribution files are
not already present.  (From the dependencies being built normally, where
checksum would have ran.)

The detail is described here:
https://www.reddit.com/r/BSD/comments/br62hm/freebsd_cryptographic_bypass_and_mitmbased/

Reported by:	emaste (on IRC)
Reviewed by:	swills emaste antoine
MFH:		2019Q3
Differential Revision:	https://reviews.freebsd.org/D21230
2019-08-13 10:31:18 +00:00
..
actual-package-depends.sh SC2006: Use $(..) instead of legacy ... 2018-06-01 16:20:54 +00:00
cargo-crates.awk Mk/Uses/cargo.mk: cargo-crates to flag unknown git hosts 2019-08-07 10:37:10 +00:00
check-desktop-entries.sh Extract desktop-categories, check-desktop-entries, and install-desktop-entries into scripts. 2018-01-28 08:25:06 +00:00
check-stagedir.sh Revert r505129: I still have the wrong version. 2019-06-26 01:07:41 +00:00
check-vulnerable.sh Improve vulnerability checking 2019-05-27 13:02:05 +00:00
check_leftovers.sh Respect UID_FILES. 2019-03-09 18:38:18 +00:00
checksum.sh SC2198: Arrays don't work as operands in [ ]. Use a loop (or concatenate with * instead of @). 2018-06-01 16:20:33 +00:00
create-manifest.sh Use UCL for pkg-message 2019-06-03 12:57:44 +00:00
depends-list.sh SC2046: Quote this to prevent word splitting. 2018-06-08 09:26:20 +00:00
desktop-categories.sh Extract desktop-categories, check-desktop-entries, and install-desktop-entries into scripts. 2018-01-28 08:25:06 +00:00
dialog4ports.sh Ease debugging of Mk/Scripts scripts. 2016-05-20 19:01:59 +00:00
do-depends.sh Force ports depending on a fetch target to actually run checksum. 2019-08-13 10:31:18 +00:00
do-fetch.sh Fix fetch-list when running as a user. 2019-07-31 10:10:35 +00:00
do-patch.sh Add support to passing directories to EXTRA_PATCHES. 2018-01-25 09:12:21 +00:00
do-users-groups.sh Remove confusing and obsolete comment, 10.2 support was axed in 2018-01-18 15:42:15 +00:00
find-lib.sh Use full path to file(1) from base as sysutils/file is buggy 2018-10-06 08:19:19 +00:00
functions.sh Reduce code duplication from r504140. 2019-06-30 23:02:44 +00:00
generate-symbols.sh Don't try splitting symbols out of .a archives. 2019-07-13 17:32:14 +00:00
install-desktop-entries.sh Extract desktop-categories, check-desktop-entries, and install-desktop-entries into scripts. 2018-01-28 08:25:06 +00:00
makesum.sh Extract the larger bsd.port.mk targets into separate scripts. 2016-05-25 15:58:31 +00:00
plist_sub_sed_sort.sh Extract PLIST_SUB substitutions into a sed script. 2018-07-26 11:09:46 +00:00
ports_env.sh Follow-up r399170 with a script, ports_env.sh, that can be used for the purpose. 2015-10-13 00:03:10 +00:00
qa.sh Add lang/julia to the blacklist of ports that other ports must not depend upon. 2019-05-28 09:44:05 +00:00
security-check.awk Convert to readelf. 2018-06-30 08:37:33 +00:00
smart_makepatch.sh Have makepatch ignore "C function prototype". 2019-05-20 13:04:03 +00:00