mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
evtchn: refuse EVTCHNOP_status for Xen-bound event channels
Callers have no business knowing the state of the Xen end of an event channel. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Julien Grall <jgrall@amazon.com> Reviewed-by: Paul Durrant <Paul@xen.org>
This commit is contained in:
1 parent
5dba8c2f23
commit
f60ab5337f
1 file changed
+5
@@ -933,6 +933,11 @@ int evtchn_status(evtchn_status_t *status)
|
||||
}
|
||||
|
||||
chn = evtchn_from_port(d, port);
|
||||
if ( consumer_is_xen(chn) )
|
||||
{
|
||||
rc = -EACCES;
|
||||
goto out;
|
||||
}
|
||||
|
||||
rc = xsm_evtchn_status(XSM_TARGET, d, chn);
|
||||
if ( rc )
|
||||
|
||||