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] [linux-2.6.18-xen] linux: prevent non-Xen modules from l

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] linux: prevent non-Xen modules from loading in Xen kernel
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 Jan 2008 16:30:13 -0800
Delivery-date: Fri, 18 Jan 2008 16:30:52 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 1200673092 0
# Node ID 1207f7f198c31595b34dca379b397e9c396856a8
# Parent  577f5e925da38574bd5ec04e7629ac88616a490e
linux: prevent non-Xen modules from loading in Xen kernel
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 include/linux/vermagic.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)

diff -r 577f5e925da3 -r 1207f7f198c3 include/linux/vermagic.h
--- a/include/linux/vermagic.h  Fri Jan 18 16:14:16 2008 +0000
+++ b/include/linux/vermagic.h  Fri Jan 18 16:18:12 2008 +0000
@@ -17,6 +17,11 @@
 #else
 #define MODULE_VERMAGIC_MODULE_UNLOAD ""
 #endif
+#ifdef CONFIG_XEN
+#define MODULE_VERMAGIC_XEN "Xen "
+#else
+#define MODULE_VERMAGIC_XEN
+#endif
 #ifndef MODULE_ARCH_VERMAGIC
 #define MODULE_ARCH_VERMAGIC ""
 #endif
@@ -24,5 +29,6 @@
 #define VERMAGIC_STRING                                                \
        UTS_RELEASE " "                                                 \
        MODULE_VERMAGIC_SMP MODULE_VERMAGIC_PREEMPT                     \
-       MODULE_VERMAGIC_MODULE_UNLOAD MODULE_ARCH_VERMAGIC              \
+       MODULE_VERMAGIC_MODULE_UNLOAD MODULE_VERMAGIC_XEN               \
+       MODULE_ARCH_VERMAGIC                                            \
        "gcc-" __stringify(__GNUC__) "." __stringify(__GNUC_MINOR__)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] linux: prevent non-Xen modules from loading in Xen kernel, Xen patchbot-linux-2.6.18-xen <=