From 2abca38e9d4934a792b15b7318ca1a9f0d9012b8 Mon Sep 17 00:00:00 2001 From: Patrick Roy Date: Thu, 5 Oct 2023 16:23:43 +0100 Subject: [PATCH] temporarily add vulnerability to test if it works Signed-off-by: Patrick Roy --- Cargo.lock | 25 +++++++++++++++++++++++-- src/firecracker/Cargo.toml | 1 + 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ba2ea6c69e2e..f832338d81a2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -116,6 +116,17 @@ dependencies = [ "vmm", ] +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi 0.1.19", + "libc", + "winapi", +] + [[package]] name = "autocfg" version = "1.1.0" @@ -533,6 +544,7 @@ name = "firecracker" version = "1.5.0-dev" dependencies = [ "api_server", + "atty", "bincode", "cargo_toml", "displaydoc", @@ -605,6 +617,15 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + [[package]] name = "hermit-abi" version = "0.3.3" @@ -636,7 +657,7 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ - "hermit-abi", + "hermit-abi 0.3.3", "libc", "windows-sys", ] @@ -647,7 +668,7 @@ version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ - "hermit-abi", + "hermit-abi 0.3.3", "rustix 0.38.4", "windows-sys", ] diff --git a/src/firecracker/Cargo.toml b/src/firecracker/Cargo.toml index 105ff1b2f956..672c02a57a9c 100644 --- a/src/firecracker/Cargo.toml +++ b/src/firecracker/Cargo.toml @@ -25,6 +25,7 @@ seccompiler = { path = "../seccompiler" } snapshot = { path = "../snapshot" } utils = { path = "../utils" } vmm = { path = "../vmm" } +atty = "0.2.14" [dev-dependencies] cargo_toml = "0.16.3"