From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH for-4.5] tools/pygrub: Fix TOCTOU race introduced by c/s 63dcc68 Date: Wed, 29 Oct 2014 17:03:22 +0100 Message-ID: <20141029160322.GA22428@aepfle.de> References: <1414591781-19376-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1414591781-19376-1-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Wei Liu , Ian Jackson , Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org On Wed, Oct 29, Andrew Cooper wrote: > In addition, use os.makedirs() which will also create intermediate directories > if they don't exist. Can this happen in practice, given that /var/run/xen is created by the runlevel scripts already? The mkdir is now really just @XEN_RUN_DIR@/pygrub. Olaf