WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] dom0_ops -EPERM not -EACCES?

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] dom0_ops -EPERM not -EACCES?
From: Reiner Sailer <sailer@xxxxxxxxxx>
Date: Wed, 23 Nov 2005 21:19:06 -0500
Delivery-date: Thu, 24 Nov 2005 02:19:14 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

> Message: 2
> Date: Thu, 24 Nov 2005 12:35:42 +1100
> From: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
> Subject: [Xen-devel] [PATCH] dom0_ops -EPERM not -EACCES?
> To: xense-devel@xxxxxxxxxxxxxxxxxxx
> Cc: Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
> Message-ID: <1132796142.25612.8.camel@xxxxxxxxxxxxxxxxxxxxx>
> Content-Type: text/plain
>
> Hi all,
>
>    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?

yes, -EPERM is the better return value here.

Reiner
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>