projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ec3ef7
)
domctl: restrict DOMCTL_set_target to HVM domains
author
Jan Beulich
<jbeulich@suse.com>
Thu, 22 Jun 2017 07:50:00 +0000
(09:50 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Thu, 22 Jun 2017 07:50:00 +0000
(09:50 +0200)
Both the XSA-217 fix and
lists.xenproject.org/archives/html/xen-devel/2017-04/msg02945.html
make this assumption, so let's enforce it.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper@citrix.com>
xen/common/domctl.c
patch
|
blob
|
history
diff --git
a/xen/common/domctl.c
b/xen/common/domctl.c
index 951a5dce0d9b061353faef65269d9ab5cb102437..dfa3df9beb0592d7c779809964e6dc84b61206b1 100644
(file)
--- a/
xen/common/domctl.c
+++ b/
xen/common/domctl.c
@@
-1071,8
+1071,11
@@
long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl)
break;
}
- ret = xsm_set_target(XSM_HOOK, d, e);
- if ( ret ) {
+ ret = -EOPNOTSUPP;
+ if ( is_hvm_domain(e) )
+ ret = xsm_set_target(XSM_HOOK, d, e);
+ if ( ret )
+ {
put_domain(e);
break;
}