mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: Hank Leininger <hlein@progressive-comp.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Deprecating .gz format on kernel.org
Date: Fri, 21 Mar 2003 00:34:48 +0100	[thread overview]
Message-ID: <20030320233448.GA10771@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <010303201736060.23184-100000@timmy.spinoli.org>

On Thu, 20 March 2003 18:14:53 -0500, Hank Leininger wrote:
> On Thu, 20 Mar 2003, [iso-8859-1] Jörn Engel wrote:
> 
> > "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.

might/could doesn't matter. does matters. ;)

> > > -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).

Waste the disk. You'll waste it anyway, once you start to compile and
by that time, the temporary tar is deleted.

> > 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.

*I* don't have any of those problems. But it is good to know that you
are concerned about me. :)

> 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.

Agreed, that would be a problem. 

> 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.

Malicious packages should be rare enough to ignore the showstopper
argument. If that problem bites you on a regular basis,...

> > > [*] ...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.

Yup, I'm convinced. signatures for plain tars would still be a nice
thing to have, but they cannot replace those for .gz and .bz2.

Jörn

-- 
Victory in war is not repetitious.
-- Sun Tzu

  reply	other threads:[~2003-03-20 23:23 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
2003-03-20 23:34     ` Jörn Engel [this message]
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=20030320233448.GA10771@wohnheim.fh-wedel.de \
    --to=joern@wohnheim.fh-wedel.de \
    --cc=hlein@progressive-comp.com \
    --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®