summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoakim Hulthe <joakim.hulthe@mullvad.net>2025-12-19 10:27:15 +0100
committerJoakim Hulthe <joakim.hulthe@mullvad.net>2025-12-19 10:27:37 +0100
commita6017e53f8c1795109e0e72e60b84c9c475c79a3 (patch)
treedbfaf28bd8478e2c019a007f7888dbd88032aad6
parent03425797fe172f0142db7facf9c0f2ef31cdc787 (diff)
downloadmullvadvpn-no-socket-uid-check.tar.xz
mullvadvpn-no-socket-uid-check.zip
Disable verification of gprc socket ownershipno-socket-uid-check
When using flatpak, if the socket is mounted using `--filesystem=/run/mullvad-vpn`, it will appear to be owned by a fake non-root user.
-rw-r--r--desktop/packages/mullvad-vpn/src/main/grpc-client.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/packages/mullvad-vpn/src/main/grpc-client.ts b/desktop/packages/mullvad-vpn/src/main/grpc-client.ts
index 702bc519c1..261b559c1a 100644
--- a/desktop/packages/mullvad-vpn/src/main/grpc-client.ts
+++ b/desktop/packages/mullvad-vpn/src/main/grpc-client.ts
@@ -276,7 +276,8 @@ export class GrpcClient {
} else {
const stat = fs.statSync(this.rpcPath);
if (stat.uid !== 0) {
- throw new Error('Failed to verify root ownership of socket');
+ // throw new Error('Failed to verify root ownership of socket');
+ log.info(`Unexpected socket owner: ${stat.uid}, continuing anyway.`);
}
log.info('Verified socket ownership');
}