public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zac Medico (zmedico)" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/webfs/files: webfs-1.21-CVE-2013-0347.patch
Date: Fri, 14 Jun 2013 23:21:53 +0000 (UTC)	[thread overview]
Message-ID: <20130614232153.BCCEF2171C@flycatcher.gentoo.org> (raw)

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);
+	    }
 	}
     }
 





                 reply	other threads:[~2013-06-14 23:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130614232153.BCCEF2171C@flycatcher.gentoo.org \
    --to=zmedico@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox