|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] 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>
---
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 <=
|
|
|
|
|