WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Do not set execute permission on qemu-dm log file

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Do not set execute permission on qemu-dm log file
From: Daniel Kiper <dkiper@xxxxxxxxxxxx>
Date: Fri, 26 Mar 2010 15:14:37 +0100
Delivery-date: Fri, 26 Mar 2010 07:16:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.3.28i
Hi,

Patch for xen-3.4-testing/xen-unstable which do not
allow to set execute permission on qemu-dm log file.

# HG changeset patch
# User dkiper@xxxxxxxxxxxx
# Date 1269611494 -3600
# Node ID 12a8db7dfdc2e589bce509069cb2ff1951bf68d5
# Parent  5b43b64a40f92b59e765c874289ed5af4d4155fe
Do not set execute permission on qemu-dm log file.

Signed-off-by: Daniel Kiper <dkiper@xxxxxxxxxxxx>

diff -r 5b43b64a40f9 -r 12a8db7dfdc2 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Wed Mar 24 11:19:55 2010 +0000
+++ b/tools/python/xen/xend/image.py    Fri Mar 26 14:51:34 2010 +0100
@@ -411,7 +411,7 @@ class ImageHandler:
                 os.rename(self.logfile, self.logfile + ".1")
 
         null = os.open("/dev/null", os.O_RDONLY)
-        logfd = os.open(self.logfile, logfile_mode)
+        logfd = os.open(self.logfile, logfile_mode, 0666)
         
         sys.stderr.flush()
         contract = osdep.prefork("%s:%d" %

# HG changeset patch
# User dkiper@xxxxxxxxxxxx
# Date 1269611880 -3600
# Node ID c51208d7795fbfd6e198b63db5373aae0c9c5743
# Parent  21d7095162da9976dad39ab1473cacd37959e070
Do not set execute permission on qemu-dm log file.

Signed-off-by: Daniel Kiper <dkiper@xxxxxxxxxxxx>

diff -r 21d7095162da -r c51208d7795f tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Fri Mar 26 10:29:46 2010 +0000
+++ b/tools/python/xen/xend/image.py    Fri Mar 26 14:58:00 2010 +0100
@@ -435,7 +435,7 @@ class ImageHandler:
                 os.rename(self.logfile, self.logfile + ".1")
 
         null = os.open("/dev/null", os.O_RDONLY)
-        logfd = os.open(self.logfile, logfile_mode)
+        logfd = os.open(self.logfile, logfile_mode, 0666)
         
         sys.stderr.flush()
         contract = osdep.prefork("%s:%d" %

Daniel

Attachment: xen-3.4-testing-qemu-dm-log-file-mode_20100326.patch
Description: Text document

Attachment: xen-unstable-qemu-dm-log-file-mode_20100326.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Do not set execute permission on qemu-dm log file, Daniel Kiper <=