[19982] in cryptography@c2.net mail archive
Re: GnuTLS (libgrypt really) and Postfix
daemon@ATHENA.MIT.EDU (Steven M. Bellovin)
Wed Feb 15 09:23:30 2006
X-Original-To: cryptography@metzdowd.com
X-Original-To: cryptography@metzdowd.com
From: "Steven M. Bellovin" <smb@cs.columbia.edu>
To: Werner Koch <wk@gnupg.org>
Cc: "James A. Donald" <jamesd@echeque.com>,
Dave Korn <davek_throwaway@hotmail.com>, cryptography@metzdowd.com
In-Reply-To: (Your message of "Tue, 14 Feb 2006 22:08:30 +0100.")
<87bqx9zm0h.fsf@wheatstone.g10code.de>
Date: Tue, 14 Feb 2006 16:26:35 -0500
In message <87bqx9zm0h.fsf@wheatstone.g10code.de>, Werner Koch writes:
>On Tue, 14 Feb 2006 13:00:33 -0500, Steven M Bellovin said:
>
>> Let me suggest a C-compatible possibility: pass an extra parameter to
>> the library routines, specifying a procedure to call if serious errors
>> occur. If that pointer is null, the library can abort.
>
>I agree. However the case at hand is a bit different. I can't
>imagine how any application or upper layer will be able to recover
>from that error (ENOENT when opening /dev/random). Okay, the special
>file might just be missing and a mknod would fix that ;-). Is it the
>duty of an application to fix an incomplete installation - how long
>shall this be taken - this is not the Unix philosophy.
It can take context-specific error recovery. Maybe that's greying out
the "encrypt" button on a large GUI. Maybe it's paging the system
administrator. It can run 'mknod' inside the appropriate chroot
partition, much as /sbin/init on some systems creates /dev/console. It
can symlink /dev/geigercounter to /dev/random. It can load the kernel
module that implements /dev/random. It can do a lot of things that may
be more appropriate than exiting.
--Steven M. Bellovin, http://www.cs.columbia.edu/~smb
---------------------------------------------------------------------
The Cryptography Mailing List
Unsubscribe by sending "unsubscribe cryptography" to majordomo@metzdowd.com