MCPcopy Index your code
hub / github.com/containers/toolbox / constructCapShArgs

Function constructCapShArgs

src/cmd/run.go:542–553  ·  view source on GitHub ↗
(command []string, useLoginShell bool)

Source from the content-addressed store, hash-verified

540}
541
542func constructCapShArgs(command []string, useLoginShell bool) []string {
543 capShArgs := []string{"capsh", "--caps=", "--"}
544
545 if useLoginShell {
546 capShArgs = append(capShArgs, []string{"--login"}...)
547 }
548
549 capShArgs = append(capShArgs, []string{"-c", "exec \"$@\"", "bash"}...)
550 capShArgs = append(capShArgs, command...)
551
552 return capShArgs
553}
554
555func constructExecArgs(container, preserveFDs string,
556 command []string,

Callers 1

constructExecArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…