aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/rndunix.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-10-14 07:21:17 +0000
committerWerner Koch <[email protected]>2004-10-14 07:21:17 +0000
commit8f70a693ac160761b3dc63d2bf654f7355def4f5 (patch)
tree0169bb0c3afbdf0788eecd4c974d248a044dd9fa /cipher/rndunix.c
parent(iobuf_get_fd): Removed double check on directfp and (diff)
downloadgnupg-8f70a693ac160761b3dc63d2bf654f7355def4f5.tar.gz
gnupg-8f70a693ac160761b3dc63d2bf654f7355def4f5.zip
* rndunix.c (start_gatherer) [ENABLE_SELINUX_HACKS]: Don't allow
logging. * gpgkeys_finger.c (get_key): s/unsigned char/byte/ due to a strange typedef for RISC OS. Noted by Stefan.
Diffstat (limited to 'cipher/rndunix.c')
-rw-r--r--cipher/rndunix.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/cipher/rndunix.c b/cipher/rndunix.c
index a07fde325..c3b5cf8e2 100644
--- a/cipher/rndunix.c
+++ b/cipher/rndunix.c
@@ -652,6 +652,13 @@ start_gatherer( int pipefd )
FILE *dbgfp = NULL;
int dbgall;
+#ifdef ENABLE_SELINUX_HACKS
+ /* We don't allow writing to the log file because this might be
+ sued to corrupt a secured file. Given that this is used as a
+ library by the ../g10/ code, we can't access the check function
+ from ../g10/misc.c. */
+ dbgall = 0;
+#else
{
const char *s = getenv("GNUPG_RNDUNIX_DBG");
if( s ) {
@@ -664,7 +671,7 @@ start_gatherer( int pipefd )
}
dbgall = !!getenv("GNUPG_RNDUNIX_DBGALL");
}
-
+#endif
/* Set up the buffer */
gather_buffer_size = GATHER_BUFSIZE;