mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
bitkeeper revision 1.1159.130.3 (41792ed6aunLXFVdvW9RR6KzJOFiVw)
Add a required privilege check.
This commit is contained in:
1 parent
d553e23081
commit
af23bfbeea
1 file changed
+2
@@ -159,6 +159,8 @@ static long evtchn_bind_interdomain(evtchn_bind_interdomain_t *bind)
|
||||
switch ( d1->event_channel[port1].state )
|
||||
{
|
||||
case ECS_FREE:
|
||||
if ( !IS_PRIV(current) && (dom2 != DOMID_SELF) )
|
||||
ERROR_EXIT(-EPERM);
|
||||
break;
|
||||
|
||||
case ECS_UNBOUND:
|
||||
|
||||