|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xenstored: Only dom0 can do XS_DEBUG in n
# 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-unstable] xenstored: Only dom0 can do XS_DEBUG in non-test environments.,
Xen patchbot-unstable <=
|
|
|
|
|