Initial commit
This commit is contained in:
21
vendor/github.com/hyperhq/hypercli/daemon/exec_unix.go
generated
vendored
Normal file
21
vendor/github.com/hyperhq/hypercli/daemon/exec_unix.go
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// +build linux freebsd
|
||||
|
||||
package daemon
|
||||
|
||||
import (
|
||||
"github.com/hyperhq/hypercli/container"
|
||||
"github.com/hyperhq/hypercli/daemon/execdriver"
|
||||
"github.com/docker/engine-api/types"
|
||||
)
|
||||
|
||||
// setPlatformSpecificExecProcessConfig sets platform-specific fields in the
|
||||
// ProcessConfig structure.
|
||||
func setPlatformSpecificExecProcessConfig(config *types.ExecConfig, container *container.Container, pc *execdriver.ProcessConfig) {
|
||||
user := config.User
|
||||
if len(user) == 0 {
|
||||
user = container.Config.User
|
||||
}
|
||||
|
||||
pc.User = user
|
||||
pc.Privileged = config.Privileged
|
||||
}
|
||||
Reference in New Issue
Block a user