public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in www-servers/webfs/files: webfs-1.21-CVE-2013-0347.patch
@ 2013-06-14 23:21 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2013-06-14 23:21 UTC (permalink / raw
  To: gentoo-commits

zmedico     13/06/14 23:21:53

  Added:                webfs-1.21-CVE-2013-0347.patch
  Log:
  Revbump with fix for bug #458892 (fix world-readable log file).
  
  (Portage version: 2.2.0_alpha179/cvs/Linux i686, signed Manifest commit with key 0xFDE8EF85AE5719A3)

Revision  Changes    Path
1.1                  www-servers/webfs/files/webfs-1.21-CVE-2013-0347.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/webfs/files/webfs-1.21-CVE-2013-0347.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/webfs/files/webfs-1.21-CVE-2013-0347.patch?rev=1.1&content-type=text/plain

Index: webfs-1.21-CVE-2013-0347.patch
===================================================================
--- ./webfsd.c
+++ ./webfsd.c
@@ -918,8 +918,11 @@
 	} else {
 	    if (NULL == (logfh = fopen(logfile,"a")))
 		xperror(LOG_WARNING,"open access log",NULL);
-	    else
+	    else {
 		close_on_exec(fileno(logfh));
+		if (0 != chmod(logfile,S_IRUSR|S_IWUSR))
+		    xperror(LOG_WARNING,"chmod access log",NULL);
+	    }
 	}
     }
 





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-14 23:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-14 23:21 [gentoo-commits] gentoo-x86 commit in www-servers/webfs/files: webfs-1.21-CVE-2013-0347.patch Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox