|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.1-testing] xsm/flask: Use correct flag to detect writable grant mappings
# HG changeset patch
# User Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
# Date 1321969046 0
# Node ID db87ad0b5391b4b77643f6b095f445aca95ef705
# Parent 5e37c6f2e5c8f964d84e6fa3aab7fd6ef602cf63
xsm/flask: Use correct flag to detect writable grant mappings
The flags passed to xsm_grant_mapref are the flags from the map
operation (GNTMAP_*), not status flags (GTF_*).
Signed-off-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
Committed-by: Keir Fraser <keir@xxxxxxx>
xen-unstable changeset: 24176:0db9c1fc8213
xen-unstable date: Tue Nov 22 13:29:01 2011 +0000
---
diff -r 5e37c6f2e5c8 -r db87ad0b5391 xen/xsm/flask/hooks.c
--- a/xen/xsm/flask/hooks.c Tue Nov 22 13:36:52 2011 +0000
+++ b/xen/xsm/flask/hooks.c Tue Nov 22 13:37:26 2011 +0000
@@ -278,7 +278,7 @@
{
u32 perms = GRANT__MAP_READ;
- if ( flags & GTF_writing )
+ if ( !(flags & GNTMAP_readonly) )
perms |= GRANT__MAP_WRITE;
return domain_has_perm(d1, d2, SECCLASS_GRANT, perms);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |