Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions agent/src/firecracker/rootfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,16 +286,16 @@ fn build_runtime_spec(config: &oci_client::config::Config) -> Result<Spec> {
.build()
.context("Failed to build runtime capabilities spec")?;

let process = ProcessBuilder::default()
let mut process = ProcessBuilder::default()
.terminal(false)
.user(user)
.args(argv)
.env(env)
.cwd(cwd)
.capabilities(capabilities)
.no_new_privileges(true)
.build()
.context("Failed to build runtime process spec")?;
process.set_no_new_privileges(None);

let root = RootBuilder::default()
.path(CONTAINER_ROOTFS_DIR)
Expand Down
1 change: 1 addition & 0 deletions agent/src/firecracker/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ async fn spawn_jailer(
"--",
"--api-sock",
api_socket,
"--no-seccomp",
])
.status()
.await
Expand Down
Loading