xenstored: Only dom0 can do XS_DEBUG in non-test environments.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-04-21 11:37:34 +01:00
1 parent edec108b06
commit 83d7cbcd07
1 file changed
+7
+7
View File
@@ -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")) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.