diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2020-04-27 22:56:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-27 16:56:24 -0400 |
commit | 95a08857f10c4eb1233c8a3f07845a2000b87d36 (patch) | |
tree | 4e2e971f1bc823a23928178e55308a5c56f46b71 /cli/ops/net.rs | |
parent | a1974cbe43b8a223e74640df1603b80f1b801347 (diff) |
Make unix sockets require allow-write (#4939)
Diffstat (limited to 'cli/ops/net.rs')
-rw-r--r-- | cli/ops/net.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/ops/net.rs b/cli/ops/net.rs index a9b1e0051..415d2cecc 100644 --- a/cli/ops/net.rs +++ b/cli/ops/net.rs @@ -521,6 +521,7 @@ fn op_listen( } if transport == "unix" || transport == "unixpacket" => { let address_path = net_unix::Path::new(&args.address); state.check_read(&address_path)?; + state.check_write(&address_path)?; let (rid, local_addr) = if transport == "unix" { net_unix::listen_unix(&mut resource_table, &address_path)? } else { |