mirror of
https://github.com/opencontainers/runc.git
synced 2025-11-02 11:54:04 +08:00
new-api: set Cloneflags in namespace.Exec()
This place looks more suitable. Signed-off-by: Andrey Vagin <avagin@openvz.org>
This commit is contained in:
committed by
Andrew Vagin
parent
d572094b75
commit
195a08efbc
@@ -133,8 +133,6 @@ func (c *linuxContainer) updateStateFile() error {
|
||||
}
|
||||
|
||||
func (c *linuxContainer) startInitProcess(cmd *exec.Cmd, config *ProcessConfig) error {
|
||||
cmd.SysProcAttr.Cloneflags = uintptr(namespaces.GetNamespaceFlags(c.config.Namespaces))
|
||||
|
||||
err := namespaces.Exec(config.Args, config.Env, cmd, c.config, c.state)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user