ia64/xen-unstable

changeset 8024:eb87d4c810d3

dom0_ops return -EACCES when the interface version in wrong. I think
that an acm failure is closer to being non-priv'ed, which returns
-EPERM. Wouldn't want dom0 tools to report they were the wrong version
just because ACM limited some operation, surely?

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
author kaf24@firebug.cl.cam.ac.uk
date Thu Nov 24 11:06:26 2005 +0100 (2005-11-24)
parents f7c7575695b3
children 9c631c4fe727
files xen/common/dom0_ops.c
line diff
     1.1 --- a/xen/common/dom0_ops.c	Thu Nov 24 11:05:21 2005 +0100
     1.2 +++ b/xen/common/dom0_ops.c	Thu Nov 24 11:06:26 2005 +0100
     1.3 @@ -102,7 +102,7 @@ long do_dom0_op(dom0_op_t *u_dom0_op)
     1.4          return -EACCES;
     1.5  
     1.6      if ( acm_pre_dom0_op(op, &ssid) )
     1.7 -        return -EACCES;
     1.8 +        return -EPERM;
     1.9  
    1.10      spin_lock(&dom0_lock);
    1.11