diff options
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts b/desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts index ff9acc8eca..d0d4244186 100644 --- a/desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts +++ b/desktop/packages/mullvad-vpn/src/main/daemon-rpc.ts @@ -105,14 +105,9 @@ export class DaemonRpc extends GrpcClient { } catch { throw new Error('Failed to verify admin ownership of named pipe'); } - } else if (process.platform === 'darwin') { - const stat = fs.statSync(DAEMON_RPC_PATH); - if (stat.uid !== 0 || stat.gid !== 1) { - throw new Error('Failed to verify root ownership of socket'); - } - } else if (process.platform === 'linux') { + } else { const stat = fs.statSync(DAEMON_RPC_PATH); - if (stat.uid !== 0 || stat.gid !== 0) { + if (stat.uid !== 0) { throw new Error('Failed to verify root ownership of socket'); } } |
