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

[Xen-devel] [PATCH] xensec_tool: Fix for xc_interface_open() call

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xensec_tool: Fix for xc_interface_open() call
From: Daniel Kiper <dkiper@xxxxxxxxxxxx>
Date: Thu, 27 Jan 2011 17:12:42 +0100
Delivery-date: Thu, 27 Jan 2011 08:13:16 -0800
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.3.28i
Hi,

xc_interface_open() was called with improper number
of arguments. It is fixed by this patch.

Daniel

# HG changeset patch
# User dkiper@xxxxxxxxxxxx
# Date 1296143465 -3600
# Node ID 18f67003e804d4774fa27ddfd16177cc15538b7b
# Parent  003acf02d416d657f750b7a7748fa8c5a932222c
xc_interface_open() was called with improper number
of arguments. It is fixed by this patch.

Signed-off-by: Daniel Kiper <dkiper@xxxxxxxxxxxx>

diff -r 003acf02d416 -r 18f67003e804 tools/security/secpol_tool.c
--- a/tools/security/secpol_tool.c      Thu Jan 20 17:04:06 2011 +0000
+++ b/tools/security/secpol_tool.c      Thu Jan 27 16:51:05 2011 +0100
@@ -511,7 +511,7 @@ int main(int argc, char **argv)
         if (argc != 2)
             usage(argv[0]);
 
-        if ((xc_handle = xc_interface_open()) == 0) {
+        if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) {
             printf("ERROR: Could not open xen privcmd device!\n");
             exit(-1);
         }
@@ -523,7 +523,7 @@ int main(int argc, char **argv)
         if (argc != 3)
             usage(argv[0]);
 
-        if ((xc_handle = xc_interface_open()) == 0) {
+        if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) {
             printf("ERROR: Could not open xen privcmd device!\n");
             exit(-1);
         }
@@ -535,7 +535,7 @@ int main(int argc, char **argv)
         if (argc != 2)
             usage(argv[0]);
 
-        if ((xc_handle = xc_interface_open()) == 0) {
+        if ((xc_handle = xc_interface_open(0, 0, 0)) == 0) {
             printf("ERROR: Could not open xen privcmd device!\n");
             exit(-1);
         }

Attachment: xen-unstable-xensec-tool_20110127.patch
Description: Text document

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