After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 635152 - gpg verification should not write signature to the filesystem
gpg verification should not write signature to the filesystem
Status: RESOLVED FIXED
Product: gmime
Classification: Other
Component: general
2.4.x
Other Linux
: Normal normal
: ---
Assigned To: Jeffrey Stedfast
Jeffrey Stedfast
Depends on:
Blocks:
 
 
Reported: 2010-11-18 09:16 UTC by Daniel Kahn Gillmor
Modified: 2010-11-19 16:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Kahn Gillmor 2010-11-18 09:16:17 UTC
I think it would generally be better if GMime avoided writing mime parts (including OpenPGP signatures) to disk.

It turns out you can send the signature to gpg via a piped file descriptor the same way that you send the message body itself, using the --enable-special-filenames flag to gpg:

http://lists.gnupg.org/pipermail/gnupg-users/2010-November/039866.html
Comment 1 Jeffrey Stedfast 2010-11-18 14:04:05 UTC
Ah, thanks for this useful info! I completely agree that writing to the fs sucks big time and I'd like to avoid doing it too!
Comment 2 Jeffrey Stedfast 2010-11-18 16:52:57 UTC
hmmm, unfortunately I can't get this to work :-(

gpg: invalid option "-&4"

my command-line is:

gpg --verbose --no-secmem-warning --no-greeting --no-tty --batch --yes --charset=UTF-8 --status-fd=10 --keyserver-options no-auto-key-retrieve --enable-special-filenames --verify -&4 -&11


since I'm not subscribed to the gpg list, can you ask some follow-up questions?

- which versions of gpg support this? (I'm on 2.0.15)

- is there a special order needed for the content / signature fds? e.g. does the content-fd have to come before the signature-fd? or is it the other way around?

- is there a special order of command-line args? e.g. does it matter where --batch is placed? or where --enable-special-filenames is placed? etc. Just trying to understand why this command is not working for me.

thanks
Comment 3 Daniel Kahn Gillmor 2010-11-18 17:15:19 UTC
whoops, i'm having the same problem you are (i'm using gpg 1.4.11).  i've asked for clarification on the list, and i'll follow up here if i get it.  Thanks for your responsiveness here, Jeffrey.
Comment 4 Daniel Kahn Gillmor 2010-11-19 15:06:53 UTC
After i followed up in that thread, Werner  wrote:

> The usual options vs. file name problem.  Add the option stopper:
>
>  gpg --enable-special-filenames --verify \
>      --batch -- '-&4' '-&3' 3<test 4<test.asc 

so "--" is the magic string.

i couldn't find any order of the option arguments that didn't work.

and the order of the non-option arguments for --verify is fixed: it is signature first, data second.
Comment 5 Jeffrey Stedfast 2010-11-19 16:48:45 UTC
fixed in both branches, thanks!