Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request kata-containers#4506 from cyyzero/runk-exec
Browse files Browse the repository at this point in the history
runk: Support `exec` sub-command
  • Loading branch information
liubin authored Jul 14, 2022
2 parents 0cc20f0 + f59939a commit 575b5eb
Show file tree
Hide file tree
Showing 12 changed files with 752 additions and 166 deletions.
2 changes: 1 addition & 1 deletion src/agent/rustjail/src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ fn do_exec(args: &[String]) -> ! {
unreachable!()
}

fn update_namespaces(logger: &Logger, spec: &mut Spec, init_pid: RawFd) -> Result<()> {
pub fn update_namespaces(logger: &Logger, spec: &mut Spec, init_pid: RawFd) -> Result<()> {
info!(logger, "updating namespaces");
let linux = spec
.linux
Expand Down
2 changes: 2 additions & 0 deletions src/tools/runk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/tools/runk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ serde_json = "1.0.74"
users = "0.11.0"
tabwriter = "1.2.1"

[dev-dependencies]
tempfile = "3.3.0"

[workspace]
members = [
"libcontainer"
Expand Down
1 change: 1 addition & 0 deletions src/tools/runk/libcontainer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ slog = "2.7.0"
chrono = { version = "0.4.19", features = ["serde"] }
serde = { version = "1.0.133", features = ["derive"] }
serde_json = "1.0.74"
scopeguard = "1.1.0"

[dev-dependencies]
tempfile = "3.3.0"
Loading

0 comments on commit 575b5eb

Please sign in to comment.