mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
xenstored: Only dom0 can do XS_DEBUG in non-test environments.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
edec108b06
commit
83d7cbcd07
1 file changed
+7
@@ -1163,6 +1163,13 @@ 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);
|
||||
|
||||
if (streq(in->buffer, "print")) {
|
||||
|
||||