Skip to content

Commit

Permalink
Allow new privileges in container
Browse files Browse the repository at this point in the history
Signed-off-by: Kohei Tokunaga <[email protected]>
  • Loading branch information
ktock committed Jan 31, 2024
1 parent 16ea78f commit e70405a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/create-spec/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ func generateSpec(config spec.Image, rootfs string) (_ *specs.Spec, err error) {
ctdoci.WithHostNamespace(specs.NetworkNamespace),
ctdoci.WithoutRunMount,
ctdoci.WithEnv(ic.Env),
ctdoci.WithTTY, // TODO: make it configurable
ctdoci.WithTTY, // TODO: make it configurable
ctdoci.WithNewPrivileges, // TODO: make it configurable
)
if err != nil {
return nil, fmt.Errorf("failed to generate spec: %w", err)
Expand Down

0 comments on commit e70405a

Please sign in to comment.