ia64/xen-unstable

changeset 2716:636399a0f740

bitkeeper revision 1.1159.130.3 (41792ed6aunLXFVdvW9RR6KzJOFiVw)

Add a required privilege check.
author kaf24@freefall.cl.cam.ac.uk
date Fri Oct 22 16:01:26 2004 +0000 (2004-10-22)
parents 720331a74166
children fa8f7b78d2c9
files xen/common/event_channel.c
line diff
     1.1 --- a/xen/common/event_channel.c	Fri Oct 22 15:57:52 2004 +0000
     1.2 +++ b/xen/common/event_channel.c	Fri Oct 22 16:01:26 2004 +0000
     1.3 @@ -159,6 +159,8 @@ static long evtchn_bind_interdomain(evtc
     1.4      switch ( d1->event_channel[port1].state )
     1.5      {
     1.6      case ECS_FREE:
     1.7 +        if ( !IS_PRIV(current) && (dom2 != DOMID_SELF) )
     1.8 +            ERROR_EXIT(-EPERM);
     1.9          break;
    1.10  
    1.11      case ECS_UNBOUND: