James Carter
2011-Jun-23 13:28 UTC
[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@tycho.nsa.gov> --- 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@tycho.nsa.gov> National Security Agency _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel