Skip to content

Commit

Permalink
runc: add allow daemonize for runc task
Browse files Browse the repository at this point in the history
Signed-off-by: Abel Feng <[email protected]>
  • Loading branch information
abel-von committed Sep 14, 2023
1 parent dc8f0b4 commit 64f6dcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runc/src/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ impl RuncSandbox {
cmd.set_namespace(&netns_fd, Namespace::Net)
.map_err(|e| anyhow!("failed to set netns {}", e))?;
}
cmd.allow_daemonize();
cmd.unshare(&[
Namespace::Pid,
Namespace::Ipc,
Expand Down

0 comments on commit 64f6dcc

Please sign in to comment.