From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/7 v3] support/download: make hash file optional
Date: Fri, 27 Mar 2015 22:31:02 +0100 [thread overview]
Message-ID: <5515CC16.9030506@mind.be> (raw)
In-Reply-To: <CAMQcK5JmZ=r6U7eV4pR_GYa3-eP_VhXu-QBRf-WtvGdcUZTFDw@mail.gmail.com>
On 24/03/15 20:03, Ryan Barnett wrote:
> Yann,
>
> On Sun, Mar 22, 2015 at 10:21 AM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
>> Currently, specifying a hash file for our download wrapper is mandatory.
>>
>> However, when we download a git, svn, bzr, hg or cvs tree, there's by
>> design no hash to check the download against.
>
> I was thinking about hashes for the git/svn/(other VCS) and how these
> sources could be provided by the buildroot sources mirror -
> http://sources.buildroot.org/ or a primary download site. Do you have
> an idea of how we could utilize hash checking if buildroot were to
> pull the sources from one of these methods? There could be a "man in
> the middle" attack since the sources mirror or the primary site just
> provides a tar of these VCS repositories
>
> This could be especially useful for when the BR2_PRIMARY_SITE_ONLY is
> used. This wouldn't necessarily for "man in the middle" attacks but
> for ensure that your downloads don't get corrupt.
Yes, I had exactly the same concept in mind. The Debian Reproducible Builds
Wiki [1] has some interesting leads. It basically boils down to adding --owner,
--group and --mtime options to tar, and making sure that the list of files is
passed explicitly instead of relying on directory order.
One difficulty is git archive, because AFAIK it doesn't support passing extra
arguments to tar or choosing the ordering of the files.
Regards,
Arnout
[1] https://wiki.debian.org/ReproducibleBuilds/Howto
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2015-03-27 21:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-22 15:21 [Buildroot] [PATCH 0/7 v3] support/download: be more aggressive on missing hashes (branch yem/dl-hash-2) Yann E. MORIN
2015-03-22 15:21 ` [Buildroot] [PATCH 1/7 v3] support/download: make hash file optional Yann E. MORIN
2015-03-23 12:50 ` Samuel Martin
2015-03-24 19:03 ` Ryan Barnett
2015-03-27 21:31 ` Arnout Vandecappelle [this message]
2015-03-22 15:21 ` [Buildroot] [PATCH 2/7 v3] package infra: do not check hashes when downloading from a repository Yann E. MORIN
2015-03-23 12:52 ` Samuel Martin
2015-03-22 15:21 ` [Buildroot] [PATCH 3/7 v3] support/download: add explicit no-hash support Yann E. MORIN
2015-03-22 16:05 ` Arnout Vandecappelle
2015-03-23 12:55 ` Samuel Martin
2015-03-22 15:21 ` [Buildroot] [PATCH 4/7 v3] support/download: return different exit codes for different failures Yann E. MORIN
2015-03-23 13:03 ` Samuel Martin
2015-03-23 18:37 ` Yann E. MORIN
2015-03-22 15:21 ` [Buildroot] [PATCH 5/7 v3] support/download: properly catch missing hashes Yann E. MORIN
2015-03-23 13:08 ` Samuel Martin
2015-03-22 15:21 ` [Buildroot] [PATCH 6/7 v3] support/download: always fail when there's no hash Yann E. MORIN
2015-03-22 15:21 ` [Buildroot] [PATCH 7/7 v3] support/download: warn when there's no .hash file Yann E. MORIN
2015-03-23 13:10 ` Samuel Martin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5515CC16.9030506@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox