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-changelog

[Xen-changelog] [xen-unstable] xen/xsm/flask: Fix flask_tbufcontrol hook

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xen/xsm/flask: Fix flask_tbufcontrol hook
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Fri, 08 Jul 2011 06:22:09 +0100
Delivery-date: Thu, 07 Jul 2011 22:22:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User James Carter <jwcart2@xxxxxxxxxxxxx>
# Date 1309248664 -3600
# Node ID 819c315a919daec434f80ffb6e790ac492cbd2a7
# Parent  1a20a85860483b2e34f2ff728aa9a58e5ed4103b
xen/xsm/flask: Fix flask_tbufcontrol hook

The flask_tbufcontrol hook currently calls domain_has_xen with the
second argument being a class (SECCLASS_XEN) instead of a permission.
This patch fixes the hook so that it passes the XEN__TBUFCONTROL
permission instead.

Signed-off-by: James Carter <jwcart2@xxxxxxxxxxxxx>
---


diff -r 1a20a8586048 -r 819c315a919d xen/xsm/flask/hooks.c
--- a/xen/xsm/flask/hooks.c     Tue Jun 28 09:10:43 2011 +0100
+++ b/xen/xsm/flask/hooks.c     Tue Jun 28 09:11:04 2011 +0100
@@ -564,7 +564,7 @@
 
 static int flask_tbufcontrol(void)
 {
-    return domain_has_xen(current->domain, SECCLASS_XEN);
+    return domain_has_xen(current->domain, XEN__TBUFCONTROL);
 }
 
 static int flask_readconsole(uint32_t clear)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xen/xsm/flask: Fix flask_tbufcontrol hook, Xen patchbot-unstable <=