File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
library/src/libdaemonjvm/internal Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 8
8
import org .scalasbt .ipcsocket .UnixDomainSocket ;
9
9
import org .scalasbt .ipcsocket .Win32NamedPipeServerSocket ;
10
10
import org .scalasbt .ipcsocket .Win32NamedPipeSocket ;
11
+ import org .scalasbt .ipcsocket .Win32SecurityLevel ;
11
12
12
13
public final class SocketMaker {
13
14
private static boolean isWin = System .getProperty ("os.name" ).toLowerCase (Locale .ROOT ).contains ("windows" );
@@ -16,7 +17,7 @@ public static Socket client(String path) throws IOException {
16
17
else return new UnixDomainSocket (path , true );
17
18
}
18
19
public static ServerSocket server (String path ) throws IOException {
19
- if (isWin ) return new Win32NamedPipeServerSocket (path , true );
20
+ if (isWin ) return new Win32NamedPipeServerSocket (path , true , Win32SecurityLevel . LOGON_DACL );
20
21
else return new UnixDomainServerSocket (path , true );
21
22
}
22
23
}
Original file line number Diff line number Diff line change 9
9
import org .graalvm .nativeimage .Platforms ;
10
10
import org .scalasbt .ipcsocket .Win32NamedPipeServerSocket ;
11
11
import org .scalasbt .ipcsocket .Win32NamedPipeSocket ;
12
+ import org .scalasbt .ipcsocket .Win32SecurityLevel ;
12
13
13
14
@ TargetClass (className = "libdaemonjvm.internal.SocketMaker" )
14
15
@ Platforms ({Platform .WINDOWS .class })
@@ -19,6 +20,6 @@ public static Socket client(String path) throws IOException {
19
20
}
20
21
@ Substitute
21
22
public static ServerSocket server (String path ) throws IOException {
22
- return new Win32NamedPipeServerSocket (path , true );
23
+ return new Win32NamedPipeServerSocket (path , true , Win32SecurityLevel . LOGON_DACL );
23
24
}
24
25
}
You can’t perform that action at this time.
0 commit comments