Skip to contentSkip to conversation

allow dom0 to use /proc/xen/xenbus for all commands (in add'n to unix domain socket)

PATCH In review Alex Zeffertt 1 participant 1 message Mar 23, 2009 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 allow dom0 to use /proc/xen/xenbus for all commands (in add'n to unix domain socket)

You should be able to run any xenbus command over /proc/xen/xenbus. Access control should be done in the daemon, not here.
This patch is needed for the libxs fallback to /proc/xen/xenbus to work for all tools. See xen patch libxc_fallback_domain_open.

---

drivers/xen/xenbus/xenbus_dev.c +7 -0
diff -r 23608d139723 drivers/xen/xenbus/xenbus_dev.c
@@ -235,6 +235,13 @@
 	case XS_MKDIR:
 	case XS_RM:
 	case XS_SET_PERMS:
+	case XS_DEBUG:
+	case XS_INTRODUCE:
+	case XS_WATCH_EVENT:
+	case XS_ERROR:
+	case XS_IS_DOMAIN_INTRODUCED:
+	case XS_RESUME:
+	case XS_SET_TARGET:
 		if (msg_type == XS_TRANSACTION_START) {
 			trans = kmalloc(sizeof(*trans), GFP_KERNEL);
 			if (!trans) {

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel