diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-04-06 18:12:12 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-04-08 14:13:29 +0200 |
| commit | 44c1189a08ea26196e9ee8d613bebd0bccc334f7 (patch) | |
| tree | fde05342958b62b30b25176034c27756bdff9be0 /talpid-core | |
| parent | 4e279886c02a2a279c676c9c2552d3f308e23a77 (diff) | |
| download | mullvadvpn-44c1189a08ea26196e9ee8d613bebd0bccc334f7.tar.xz mullvadvpn-44c1189a08ea26196e9ee8d613bebd0bccc334f7.zip | |
Set stricter permissions on plugin socket
Diffstat (limited to 'talpid-core')
| -rw-r--r-- | talpid-core/src/tunnel/openvpn/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/talpid-core/src/tunnel/openvpn/mod.rs b/talpid-core/src/tunnel/openvpn/mod.rs index 520181d3cc..cbb89f912e 100644 --- a/talpid-core/src/tunnel/openvpn/mod.rs +++ b/talpid-core/src/tunnel/openvpn/mod.rs @@ -901,7 +901,7 @@ impl ProcessHandle for OpenVpnProcHandle { mod event_server { use futures::stream::TryStreamExt; - use parity_tokio_ipc::{Endpoint as IpcEndpoint, SecurityAttributes}; + use parity_tokio_ipc::Endpoint as IpcEndpoint; use std::{ collections::HashMap, convert::TryFrom, @@ -973,8 +973,7 @@ mod event_server { where L: Fn(openvpn_plugin::EventType, HashMap<String, String>) + Send + Sync + 'static, { - let mut endpoint = IpcEndpoint::new(ipc_path.clone()); - endpoint.set_security_attributes(SecurityAttributes::allow_everyone_create().unwrap()); + let endpoint = IpcEndpoint::new(ipc_path); let incoming = endpoint.incoming().map_err(Error::StartServer)?; let _ = server_start_tx.send(()); |
