[WSD] Allow running WSD as a normal user
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 3 Aug 2006 08:10:22 +0000 (08:10 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 3 Aug 2006 08:10:22 +0000 (08:10 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@437 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

inc/iba/ib_at_ioctl.h
ulp/wsd/user/ibsp_ip.c

index 47e2f13..b27d5b2 100644 (file)
 #define        _IB_AT_IOCTL_H_\r
 \r
 \r
-#define        IBAT_IOCTL_VERSION              2\r
+#define        IBAT_IOCTL_VERSION              3\r
 \r
 #define        IBAT_MAC_LEN                    6\r
 \r
 \r
 #define IOCTL_IBAT( n )                \\r
        CTL_CODE( FILE_DEVICE_UNKNOWN, (0x800 + n), \\r
-               METHOD_BUFFERED, FILE_READ_ACCESS )\r
+               METHOD_BUFFERED, FILE_ANY_ACCESS )\r
 \r
 /** This IRP is used to return all available CAs ports number\r
  * and port guid */\r
index 0d6d8ef..30bd29f 100644 (file)
@@ -96,7 +96,7 @@ query_ip_address(
        if( g_ibsp.h_ibat_dev == INVALID_HANDLE_VALUE )\r
        {\r
                g_ibsp.h_ibat_dev = CreateFileW( IBAT_WIN32_NAME,\r
-                       GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,\r
+                       MAXIMUM_ALLOWED, 0, NULL,\r
                        OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );\r
        }\r
        cl_spinlock_release( &g_ibsp.ip_mutex );\r