From: Hank Leininger <hlein@progressive-comp.com>
To: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Deprecating .gz format on kernel.org
Date: Thu, 20 Mar 2003 18:14:53 -0500 (EST) [thread overview]
Message-ID: <010303201736060.23184-100000@timmy.spinoli.org> (raw)
In-Reply-To: <20030320221332.GA13641@wohnheim.fh-wedel.de>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 4330 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 20 Mar 2003, [iso-8859-1] Jörn Engel wrote:
> On Thu, 20 March 2003 16:54:13 -0500, Hank Leininger wrote:
> > On 2003-03-20, Joern Engel <joern () wohnheim ! fh-wedel ! de> wrote:
> >
> > A few come to mind:
>
> "Come to mind" doesn't sound line "that'd break our environment." ;)
Well, no ;) But I could see how they might break some, and/or would
cause real problems even though they wouldn't be insurmountable ones.
> > -To verify and then use a .tar.[bg]z2?, you must gpg --verify and then
> > tar -x[jz]vf, but to unpack, then verify, then use you must uncompress
> > to a tempfile or pipe to gpg, then verify, then untar. Silly waste of
> > CPU and/or disk space.[*]
>
> Veryfy and use are two action. You need a script or a human, changing
> either one won't be hard.
Right, but if the uncompressed file is what's signed, then you must
waste either CPU uncompressing twice (once to verify, once to untar) or
waste disk (to store the uncompressed file, then verify, then untar).
> > -Verifying downloads immediately, when they won't necessarily be needed /
> > used right away; no need to unpack until it's needed, but would like to
> > know the download is bad right away.
>
> real-world?
Sure. You're net-connected only intermittantly, and want to verify
downloads as soon as you get them, so you can re-get before
disconnecting. Or you're pulling files down to burn to CD, you'd like
to know if they are bad before you've burned the CD and try to use it
elsewhere; unpacking just to verify is a waste.
> > -Verifying something pulled down to one machine before scp'ing it elsewhere
> > where it will actually be used.
>
> real-world?
Sure. Fits same as above. Say you pull stuff down to a somewhat
central internal repository and then push it out to several other boxes,
which may themselves have no generalized external connectivity (no
default routes, behind firewalls, running local firewalling, etc).
You'd want to verify it there and then (perhaps in addition to at the
final destination depending on how paranoid you are) and then push it
around, still compressed, or you're wasting work.
Hell, here's an easy example: the kernel.org mirror sites. I don't know
for sure if any of them --verify the tarball+sig files that they mirror,
but it sure would make a lot of sense. With signatures of the
compressed tarballs, that would be trivial. With signatures of the .tar
files, it would be far more resource-intensive for them to implement.
Another flavor I hit personally is: I want to hack on and/or upgrade my
laptop to some new version of something while on a flight. Before
leaving I pull down the tarballs and sig files to my main workstation,
verify the signatures, scp to the laptop. It'd be a waste to unpack
just to verify before pushing it, a pain to have to unpack and verify on
the laptop right away, and a showstopper if I didn't verify until I was
at 30,000 feet.
> > -Verifying before [bg]unzip means you won't expose [bg]unzip to likely
> > malicious data (think bugs in [bg]unzip which make them crash on bad
> > compressed files). Of course GPG/PGP is still subject to input-based
>
> Crashes don't matter. Exploits would, so that point is actually valid.
Well, indeed, that's what I was suggesting.
> > [*] ...Now if tar had a --sig option to chain gpg between gunzip and
> > untar... but that would just be Wrong.
>
> unzip && checksig && tar?
Yes, but all as one pipeline, not seperate commands with tempfiles.
After all there is a reason the [Zzj] flags were added to tar. Signing
the intermediate .tar instead of the .tar.(gz|bs2) breaks that.
But that's inventing questionable features in GNU tar that won't be
present in other tars or archive-managing tools, creating dependencies
on GPG/PGP/tool of choice, etc. Unnecessary complexity.
Actually, unlike gzip | tar -xf -, you can't start feeding the
signature-checked tar file to tar -xf until all of it has been read in
to be verified, so really, it can't be done in a single pass.
Hank Leininger <hlein@progressive-comp.com>
E407 AEF4 761E D39C D401 D4F4 22F8 EF11 861A A6F1
-----BEGIN PGP SIGNATURE-----
iD8DBQE+ekttIvjvEYYapvERAtY1AJ9QX8suP6G6zHxQjHiM8yxGO8QtEwCeMKJL
+jgFyusy4ofF7esaP/mMu/w=
=9xEC
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2003-03-20 23:04 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-20 21:54 Hank Leininger
2003-03-20 22:13 ` Jörn Engel
2003-03-20 23:14 ` Hank Leininger [this message]
2003-03-20 23:34 ` Jörn Engel
2003-03-21 6:26 ` Ville Herva
2003-03-21 6:38 ` Ville Herva
2003-03-21 7:26 ` Hank Leininger
2003-03-20 23:50 ` H. Peter Anvin
[not found] <200303211124.h2LBO6mU011361@sunrise.pg.gda.pl>
2003-03-21 11:28 ` Andrzej Krzysztofowicz
2003-03-21 15:39 ` Alan Cox
2003-03-21 19:43 ` H. Peter Anvin
[not found] <20030320165007$503c@gated-at.bofh.it>
[not found] ` <20030320180014$0e31@gated-at.bofh.it>
[not found] ` <20030320182006$46bf@gated-at.bofh.it>
2003-03-20 18:44 ` Pascal Schmidt
2003-03-20 19:52 ` Pavel Machek
2003-03-23 23:30 ` Krzysztof Halasa
-- strict thread matches above, loose matches on Subject: below --
2003-03-19 20:19 H. Peter Anvin
2003-03-19 20:39 ` wind
2003-03-19 20:46 ` Martin J. Bligh
2003-03-19 20:57 ` Mr. James W. Laferriere
2003-03-19 21:12 ` Tigran Aivazian
2003-03-19 21:42 ` Arjan van de Ven
2003-03-19 21:55 ` Arnaldo Carvalho de Melo
2003-03-19 22:06 ` Kurt Garloff
2003-03-19 23:46 ` Eric Sandall
2003-03-20 8:27 ` Thierry Vignaud
2003-03-20 8:40 ` Dagfinn Ilmari Mannsåker
2003-03-20 15:37 ` Jon Portnoy
2003-03-20 0:21 ` Jamie Lokier
2003-03-20 17:53 ` Eric Sandall
2003-03-20 17:39 ` Jamie Lokier
2003-03-20 18:31 ` Eric Sandall
2003-03-20 21:14 ` Jörn Engel
2003-03-25 15:59 ` Bill Davidsen
2003-03-26 12:57 ` Jörn Engel
2003-03-20 14:03 ` Juan Quintela
2003-03-19 21:39 ` Sam Ravnborg
2003-03-20 22:17 ` LA Walsh
2003-03-21 0:09 ` Eric Sandall
2003-03-21 4:42 ` Vlad@geekizoid.com
2003-03-21 7:24 ` Eric Sandall
2003-03-19 22:22 ` H. Peter Anvin
2003-03-20 3:56 ` Martin J. Bligh
2003-03-20 4:18 ` H. Peter Anvin
2003-03-19 22:44 ` DervishD
2003-03-20 0:02 ` David S. Miller
2003-03-20 9:55 ` John Bradford
2003-03-20 13:10 ` John Jasen
2003-03-20 13:49 ` Richard B. Johnson
2003-03-20 10:03 ` Erik Hensema
2003-03-20 16:32 ` Jan-Benedict Glaw
2003-03-20 16:42 ` Mike Dresser
2003-03-20 17:51 ` Eli Carter
2003-03-20 18:04 ` Thomas Duffy
2003-03-25 16:04 ` Bill Davidsen
2003-03-25 16:25 ` Jan-Benedict Glaw
2003-03-25 16:34 ` Stephen Frost
2003-03-20 18:10 ` Jan-Benedict Glaw
2003-03-24 2:12 ` Miles Bader
2003-03-24 2:24 ` Miles Bader
2003-03-24 2:40 ` nick
2003-03-24 11:33 ` Jan-Benedict Glaw
2003-03-20 17:23 ` Randy.Dunlap
2003-03-20 18:12 ` Jan-Benedict Glaw
2003-03-20 17:48 ` Tomas Szepe
2003-03-20 17:57 ` Dana Lacoste
2003-03-20 18:24 ` Tomas Szepe
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=010303201736060.23184-100000@timmy.spinoli.org \
--to=hlein@progressive-comp.com \
--cc=joern@wohnheim.fh-wedel.de \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®