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-changelog

[Xen-changelog] [xen-unstable] libelf: make elf_phdr_is_loadable load re

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libelf: make elf_phdr_is_loadable load read-only segments.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 29 Jan 2010 01:05:20 -0800
Delivery-date: Fri, 29 Jan 2010 01:06:11 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1264749272 0
# Node ID 2bc69db28153e8da148cda58b1a6c5ddd23ca8b2
# Parent  8dcedf17b5b4ffbbd50c19dabd3b221f6d58be89
libelf: make elf_phdr_is_loadable load read-only segments.

From: Brad Plant <bplant@xxxxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/common/libelf/libelf-tools.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 8dcedf17b5b4 -r 2bc69db28153 xen/common/libelf/libelf-tools.c
--- a/xen/common/libelf/libelf-tools.c  Fri Jan 29 07:10:28 2010 +0000
+++ b/xen/common/libelf/libelf-tools.c  Fri Jan 29 07:14:32 2010 +0000
@@ -235,7 +235,7 @@ int elf_phdr_is_loadable(struct elf_bina
     uint64_t p_type = elf_uval(elf, phdr, p_type);
     uint64_t p_flags = elf_uval(elf, phdr, p_flags);
 
-    return ((p_type == PT_LOAD) && (p_flags & (PF_W | PF_X)) != 0);
+    return ((p_type == PT_LOAD) && (p_flags & (PF_R | PF_W | PF_X)) != 0);
 }
 
 /*

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libelf: make elf_phdr_is_loadable load read-only segments., Xen patchbot-unstable <=