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-3.0.5-testing] xenstored: Only dom0 can do XS_DEBUG

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.0.5-testing] xenstored: Only dom0 can do XS_DEBUG in non-test environments.
From: "Xen patchbot-3.0.5-testing" <patchbot-3.0.5-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 25 Apr 2007 08:40:18 -0700
Delivery-date: Wed, 25 Apr 2007 08:39:04 -0700
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 kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1177151854 -3600
# Node ID 9e44519ee9a25121003357c4e3e825d64c3b13a4
# Parent  55135bf6eb4459fb130e9d27f7ccbeb89b86637b
xenstored: Only dom0 can do XS_DEBUG in non-test environments.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/xenstore/xenstored_core.c |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r 55135bf6eb44 -r 9e44519ee9a2 tools/xenstore/xenstored_core.c
--- a/tools/xenstore/xenstored_core.c   Fri Apr 20 17:56:28 2007 +0100
+++ b/tools/xenstore/xenstored_core.c   Sat Apr 21 11:37:34 2007 +0100
@@ -1162,6 +1162,13 @@ static void do_debug(struct connection *
 static void do_debug(struct connection *conn, struct buffered_data *in)
 {
        int num;
+
+#ifndef TESTING
+       if (conn->id != 0) {
+               send_error(conn, EACCES);
+               return;
+       }
+#endif
 
        num = xs_count_strings(in->buffer, in->used);
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.0.5-testing] xenstored: Only dom0 can do XS_DEBUG in non-test environments., Xen patchbot-3.0.5-testing <=