Martin
08/26/2026, 1:16 PM~/.gradle but I haven't found a way to allow the daemon to access the Sandbox networking is blocking Gradle's file-lock socket. Retrying without the sandbox.Vampire
08/26/2026, 1:19 PMAnze Sodja
08/26/2026, 1:21 PMnetwork": {
"allowLocalBinding": true
}
should allow it (note Gradle doesn't use unix domain sockets (yet?))Martin
08/26/2026, 1:22 PMMartin
08/26/2026, 1:22 PMMartin
08/26/2026, 1:26 PMCaused by: java.net.SocketException: Operation not permitted
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Net.java:525)
at java.base/sun.nio.ch.DatagramChannelImpl.bindInternal(DatagramChannelImpl.java:1241)
at java.base/sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:1215)
at java.base/sun.nio.ch.DatagramSocketAdaptor.bind(DatagramSocketAdaptor.java:106)
at java.base/java.net.DatagramSocket.createDelegate(DatagramSocket.java:1311)
at java.base/java.net.DatagramSocket.<init>(DatagramSocket.java:310)
at java.base/java.net.DatagramSocket.<init>(DatagramSocket.java:349)
at org.gradle.cache.internal.locklistener.DefaultFileLockCommunicator.<init>(DefaultFileLockCommunicator.java:45)
... 59 moreMartin
08/26/2026, 1:28 PM"allowLocalBinding": true
this made the trick 👍Martin
08/26/2026, 1:28 PMMartin
08/26/2026, 1:29 PMAnze Sodja
08/26/2026, 1:33 PMWould be nice to be able to whitelist exactly what Gradle is usingDefinitely some guide would be nice Note that I also had problems with temp files, so something like this could help:
"filesystem": {
"allowWrite": [
"/tmp",
"/var/folders/*/*/T/**",
"/private/var/folders/*/*/T/**",
]
}Martin
08/26/2026, 1:35 PM~/.konan nowMartin
08/26/2026, 1:36 PM.konan/kotlin-native-prebuilt-macos-aarch64-2.4.10/.lockMartin
08/26/2026, 1:36 PMflock which it isn't 100% clear if it can be bypassed from settings or notAnze Sodja
08/26/2026, 1:37 PMMartin
08/26/2026, 1:37 PMMartin
08/26/2026, 1:38 PMThe sandbox on macOS is enforced at the syscall level (via sandbox-exec/Seatbelt), not as a simple path-based ACL. A directory being in the write-allow list only guarantees plain open()/write() calls succeed there. Operations like creating a lock file with exclusive-create semantics, or flock()/fcntl(F_SETLK) calls, go through separate syscall filters that can be denied independently of general file-write permission.Martin
08/26/2026, 1:38 PMMartin
08/26/2026, 1:40 PMAnze Sodja
08/26/2026, 1:44 PMMartin
08/26/2026, 1:46 PMMartin
08/26/2026, 1:47 PMMartin
08/26/2026, 1:47 PMAdam
08/27/2026, 9:46 AMYea, I'm stuck on ~/.konan now@Martin Please make a YT issue for this, or anything related to KGP 🙏
Martin
08/27/2026, 11:31 AMAdam
08/27/2026, 12:40 PM~/.konan by setting KONAN_DATA_DIR env var. Maybe it's possible to set KONAN_DATA_DIR for Claude so it has its own location? Though it would be expensive in terms of disk space.Martin
08/27/2026, 12:41 PM.gradle, .konan, etc...)