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] xen/xsm/flask: Fix flask_tbufcontrol hook

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xen/xsm/flask: Fix flask_tbufcontrol hook
From: James Carter <jwcart2@xxxxxxxxxxxxx>
Date: Thu, 23 Jun 2011 09:28:32 -0400
Delivery-date: Thu, 23 Jun 2011 06:29:09 -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>
Organization: National Security Agency
Reply-to: jwcart2@xxxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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>

---

 hooks.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -r eca057e4475c xen/xsm/flask/hooks.c
--- a/xen/xsm/flask/hooks.c     Fri Jun 17 08:08:13 2011 +0100
+++ b/xen/xsm/flask/hooks.c     Wed Jun 22 14:12:00 2011 -0400
@@ -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)

-- 
James Carter <jwcart2@xxxxxxxxxxxxx>
National Security Agency



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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xen/xsm/flask: Fix flask_tbufcontrol hook, James Carter <=