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:
Jan Beulich committed 2020-09-30 09:10:01 +02:00
1 parent 5dba8c2f23
commit f60ab5337f
1 file changed
+5
+5
View File
@@ -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 )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.