WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 1/3] [linux-2.6.18-xen.hg] allow dom0 to use /proc/xe

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 1/3] [linux-2.6.18-xen.hg] allow dom0 to use /proc/xen/xenbus for all commands (in add'n to unix domain socket)
From: Alex Zeffertt <alex.zeffertt@xxxxxxxxxxxxx>
Date: Mon, 23 Mar 2009 15:20:01 +0000
Delivery-date: Mon, 23 Mar 2009 08:21:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

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.

Signed-off-by: Diego Ongaro <diego.ongaro@xxxxxxxxxx>
Signed-off-by: Alex Zeffertt <alex.zeffertt@xxxxxxxxxxxxx>
---
diff -r 23608d139723 drivers/xen/xenbus/xenbus_dev.c
--- a/drivers/xen/xenbus/xenbus_dev.c   Fri Jul 11 16:08:33 2008 +0100
+++ b/drivers/xen/xenbus/xenbus_dev.c   Fri Jul 11 16:32:29 2008 +0100
@@ -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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 1/3] [linux-2.6.18-xen.hg] allow dom0 to use /proc/xen/xenbus for all commands (in add'n to unix domain socket), Alex Zeffertt <=