Skip to content

Commit

Permalink
Merge pull request #320 from chainguard-dev/fix/bwrap-new-session-cve…
Browse files Browse the repository at this point in the history
…-2017-5226

container: bubblewrap runner: use --new-session to mitigate CVE-2017-5226
  • Loading branch information
kaniini authored Mar 14, 2023
2 parents 404f01b + 07cd62e commit f680f28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/container/bubblewrap_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ func (bw *BWRunner) Run(cfg *Config, args ...string) error {
"--dev", "/dev",
"--proc", "/proc",
"--chdir", "/home/build",
"--clearenv")
"--clearenv",
"--new-session")

if !cfg.Capabilities.Networking {
baseargs = append(baseargs, "--unshare-net")
Expand Down

0 comments on commit f680f28

Please sign in to comment.