]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r306417: portsnap: only move expected snapshot contents from snap/ to files/
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 5 Oct 2016 00:33:06 +0000 (00:33 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 5 Oct 2016 00:33:06 +0000 (00:33 +0000)
commitc0af88e89ac3fc4e8535a5593dbc6c242cb67c4d
tree48dd6efe74ddf2853b7c0914ea2fd6cefb9a0704
parent655c3534825ca138984b831c337d255b2d9605bc
MFC r306417: portsnap: only move expected snapshot contents from snap/ to files/

Previously it was possible to smuggle in addional files that would
be used by later portsnap runs. Now we only move those files expected
to be in the snapshot into files/ and require that there are no
unexpected files.

This was used by portsnap attacks 2, 3, and 4 in the "non-cryptanalytic
attacks against FreeBSD update components" anonymous gist.

git-svn-id: svn://svn.freebsd.org/base/stable/10@306697 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/portsnap/portsnap/portsnap.sh