Bug 4219 - joe leaves DEADJOE world-readable
joe leaves DEADJOE world-readable
Status: CLOSED NEXTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: joe (Show other bugs)
6.0
All Linux
high Severity medium
: ---
: ---
Assigned To: Cristian Gafton
http://www.securityfocus.com/template...
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-07-27 08:20 EDT by Louis Mandelstam
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-09-02 12:11:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Louis Mandelstam 1999-07-27 08:20:08 EDT
This was reported on BUGTRAQ on Jul 17 1999.  Please see
quoted URL for an archived copy of the original BUGTRAQ
post.

Patch offered in the post (I haven't tested it): (a bit
broken by the web form)

--- b.c.orig    Fri Jan 20 00:38:25 1995
+++ b.c Sat Jul 17 01:54:09 1999
@@ -21,6 +21,7 @@
 #include <pwd.h>
 #endif
 #include <errno.h>
+#include <sys/types.h>

 #include "config.h"
 #include "blocks.h"
@@ -1990,6 +1991,7 @@
  {
  long tim=time(0);
  B *b;
+ mode_t mask=umask (077); /* no access to DEADJOE for
others */
  FILE *f=fopen("DEADJOE","a");
  fprintf(f,"\n*** Modified files in JOE when it aborted on
%s",ctime(&tim));
  if(sig) fprintf(f,"*** JOE was aborted by signal
%d\n",sig);
Comment 1 Jeff Johnson 1999-09-02 12:11:59 EDT
Fiexed in joe-2.8-21.

Note You need to log in before you can comment on or make changes to this bug.