From: Oliver Kurth Date: Fri, 26 Oct 2018 17:44:58 +0000 (-0700) Subject: [AsyncSocket] Replace 'Bool safeAccess' parameter with 'DWORD accessType' in AsyncSoc... X-Git-Tag: stable-11.0.0~364 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4aeaba06a0e5fbe857bcf6cc9e361bb537101281;p=thirdparty%2Fopen-vm-tools.git [AsyncSocket] Replace 'Bool safeAccess' parameter with 'DWORD accessType' in AsyncSocket_CreateNamedPipe. So that callers can select wanted access control. --- diff --git a/open-vm-tools/lib/include/asyncsocket.h b/open-vm-tools/lib/include/asyncsocket.h index 2af8862ab..fe066045d 100644 --- a/open-vm-tools/lib/include/asyncsocket.h +++ b/open-vm-tools/lib/include/asyncsocket.h @@ -514,6 +514,13 @@ AsyncSocket_ConnectNamedPipe(const char *pipeName, AsyncSocketPollParams *pollParams, int *outError); +#define ASOCK_NAMEDPIPE_ALLOW_DEFAULT (0) +#define ASOCK_NAMEDPIPE_ALLOW_ADMIN_USER_VMWARE (SDPRIV_GROUP_ADMIN | \ + SDPRIV_USER_CURRENT | \ + SDPRIV_GROUP_VMWARE) +#define ASOCK_NAMEDPIPE_ALLOW_ADMIN_USER (SDPRIV_GROUP_ADMIN | \ + SDPRIV_USER_CURRENT) + AsyncSocket* AsyncSocket_CreateNamedPipe(const char *pipeName, AsyncSocketConnectFn connectFn, @@ -521,7 +528,7 @@ AsyncSocket_CreateNamedPipe(const char *pipeName, DWORD openMode, DWORD pipeMode, uint32 numInstances, - Bool safeAccess, + DWORD accessType, AsyncSocketPollParams *pollParams, int *error); #endif