(command []string, useLoginShell bool)
| 540 | } |
| 541 | |
| 542 | func 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 | |
| 555 | func constructExecArgs(container, preserveFDs string, |
| 556 | command []string, |
no outgoing calls
no test coverage detected
searching dependent graphs…