aquatic: add setting for dropping privileges after opening sockets

This commit is contained in:
Joakim Frostegård 2020-05-06 01:26:35 +02:00
parent e0526ac828
commit 6110017980
6 changed files with 89 additions and 1 deletions

30
Cargo.lock generated
View file

@ -35,6 +35,7 @@ dependencies = [
"mio",
"net2",
"parking_lot",
"privdrop",
"quickcheck",
"quickcheck_macros",
"rand",
@ -425,6 +426,19 @@ dependencies = [
"winapi",
]
[[package]]
name = "nix"
version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dd0eaf8df8bab402257e0a5c17a254e4cc1f72a93588a1ddfb5d356c801aa7cb"
dependencies = [
"bitflags",
"cc",
"cfg-if",
"libc",
"void",
]
[[package]]
name = "nodrop"
version = "0.1.14"
@ -587,6 +601,16 @@ version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "74490b50b9fbe561ac330df47c08f3f33073d2d00c150f719147d7c54522fa1b"
[[package]]
name = "privdrop"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "939fa7cbfef9c15c65cf2fb3ed57f3f2a14dca1757a556aa1ba4a7f998b2b479"
dependencies = [
"libc",
"nix",
]
[[package]]
name = "proc-macro2"
version = "1.0.10"
@ -839,6 +863,12 @@ version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "078775d0255232fb988e6fccf26ddc9d1ac274299aaedcedce21c6f72cc533ce"
[[package]]
name = "void"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d"
[[package]]
name = "wasi"
version = "0.9.0+wasi-snapshot-preview1"