Received: from eggs.gnu.org ([2001:4830:134:3::10]:56962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z06SU-000685-T0 for qemu-devel@nongnu.org; Wed, 03 Jun 2015 07:03:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z06SO-0005u1-Vc for qemu-devel@nongnu.org; Wed, 03 Jun 2015 07:03:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z06SO-0005tR-RD for qemu-devel@nongnu.org; Wed, 03 Jun 2015 07:03:36 -0400 From: Markus Armbruster References: <87iob7lv1p.fsf@blackfin.pond.sub.org> <1479491695.1864821.1433227890796.JavaMail.yahoo@mail.yahoo.com> Date: Wed, 03 Jun 2015 13:03:33 +0200 In-Reply-To: <1479491695.1864821.1433227890796.JavaMail.yahoo@mail.yahoo.com> (P. J. P.'s message of "Tue, 2 Jun 2015 06:51:30 +0000 (UTC)") Message-ID: <87wpzlnjei.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] net: fix insecure temporary file creation in SLiRP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: P J P Cc: "pmatouse@redhat.com" , "mrezanin@redhat.com" , Michael Tokarev , "qemu-devel@nongnu.org" P J P writes: > Hello Markus, > >> On Monday, 1 June 2015 1:28 PM, Markus Armbruster wrote: >> Michael (cc'ed) already posted "[PATCH] slirp: use less predictable >> directory name in /tmp for smb config (CVE-2015-4037)"[*]. His patch >> clobbers s->smb_dir[] when mkdtemp() fails (missed that in my review), >> yours doesn't. >> >> Suggest you guys figure out together which solution you want. > > > Thank you so much for the review. IMO using separate smb_dir[] is > prudent than s->smb_dir. Let's go with Michael's v2, because it also fixes the "cleanup after mkdir() / mkdtemp() failed" scenario. [...]