diff options
author | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2011-03-11 15:28:26 -0500 |
---|---|---|
committer | Daniel De Graaf <dgdegra@tycho.nsa.gov> | 2011-03-11 15:28:26 -0500 |
commit | fd5b16f9c1de2424792a5da5264b24bb6dbd478f (patch) | |
tree | 9a6479af5ad7a33025297d8efd00767b0da31431 | |
parent | 32330bfbce488b03ddca6d0da074f5fe94f51035 (diff) |
Change xenstore path to /local/domain/%d/data/vchan/%d to fix permissions issues
-rw-r--r-- | vchan/init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vchan/init.c b/vchan/init.c index 8666ee3..491759c 100644 --- a/vchan/init.c +++ b/vchan/init.c @@ -287,14 +287,14 @@ static int init_xs_srv(struct libvchan *ctrl, int ring_ref) perms[1].perms = XS_PERM_READ; snprintf(ref, sizeof ref, "%d", ring_ref); - snprintf(buf, sizeof buf, "device/vchan/%d/ring-ref", ctrl->device_number); + snprintf(buf, sizeof buf, "data/vchan/%d/ring-ref", ctrl->device_number); if (!xs_write(xs, 0, buf, ref, strlen(ref))) goto fail_xs_open; if (!xs_set_permissions(xs, 0, buf, perms, 2)) goto fail_xs_open; snprintf(ref, sizeof ref, "%d", ctrl->event_port); - snprintf(buf, sizeof buf, "device/vchan/%d/event-channel", ctrl->device_number); + snprintf(buf, sizeof buf, "data/vchan/%d/event-channel", ctrl->device_number); if (!xs_write(xs, 0, buf, ref, strlen(ref))) goto fail_xs_open; if (!xs_set_permissions(xs, 0, buf, perms, 2)) @@ -403,7 +403,7 @@ struct libvchan *libvchan_client_init(int domain, int devno) goto fail; // find xenstore entry - snprintf(buf, sizeof buf, "/local/domain/%d/device/vchan/%d/ring-ref", + snprintf(buf, sizeof buf, "/local/domain/%d/data/vchan/%d/ring-ref", ctrl->other_domain_id, ctrl->device_number); ref = xs_read(xs, 0, buf, &len); if (!ref) @@ -412,7 +412,7 @@ struct libvchan *libvchan_client_init(int domain, int devno) free(ref); if (!ring_ref) goto fail; - snprintf(buf, sizeof buf, "/local/domain/%d/device/vchan/%d/event-channel", + snprintf(buf, sizeof buf, "/local/domain/%d/data/vchan/%d/event-channel", ctrl->other_domain_id, ctrl->device_number); ref = xs_read(xs, 0, buf, &len); if (!ref) |