summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qlocalserver.cpp
diff options
context:
space:
mode:
authorShane Kearns <ext-shane.2.kearns@nokia.com>2012-05-02 15:32:09 +0100
committerQt by Nokia <qt-info@nokia.com>2012-05-03 16:11:58 +0200
commit39eb95ece12445af944cb9fd17136d7f6c20e4cd (patch)
tree5b40db41fae60c5d1607486ec6d7e649ed7c0445 /src/network/socket/qlocalserver.cpp
parent95c4be798c1d410c78580e952efc0168034fceaf (diff)
Implement QLocalServer::socketOptions on windows
Tested manually using the localfortuneserver example and multiple login sessions. The linux autotest isn't suitable for windows due to pipe permissions not appearing in the filesystem. Task-number: QTBUG-25147 Change-Id: I5ea4db81d1870dc45bd483fa8d0b06afede3b722 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/network/socket/qlocalserver.cpp')
-rw-r--r--src/network/socket/qlocalserver.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/network/socket/qlocalserver.cpp b/src/network/socket/qlocalserver.cpp
index b379e99f6f..8284ae4c27 100644
--- a/src/network/socket/qlocalserver.cpp
+++ b/src/network/socket/qlocalserver.cpp
@@ -95,8 +95,10 @@ QT_BEGIN_NAMESPACE
Access is restricted to the same user as the process that created the socket.
\value GroupAccessOption
Access is restricted to the same group but not the user that created the socket on Linux.
+ Access is restricted to the primary group of the process on Windows
\value OtherAccessOption
Access is available to everyone but the user and group that created the socket on Linux.
+ Access is available to everyone on Windows.
\value WorldAccessOption
No access restrictions.
@@ -150,6 +152,13 @@ QLocalServer::~QLocalServer()
honor file permissions for Unix domain sockets and by default
have WorldAccess and these permission flags will have no effect.
+ On Windows, UserAccessOption is sufficient to allow a non
+ elevated process to connect to a local server created by an
+ elevated process run by the same user. GroupAccessOption
+ refers to the primary group of the process (see TokenPrimaryGroup
+ in the Windows documentation). OtherAccessOption refers to
+ the well known "Everyone" group.
+
By default none of the flags are set, access permissions
are the platform default.