mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-26 09:00:53 +08:00
Move environment configuration to Process
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -15,6 +15,7 @@ import (
|
||||
|
||||
type linuxUsernsInit struct {
|
||||
args []string
|
||||
env []string
|
||||
config *configs.Config
|
||||
}
|
||||
|
||||
@@ -76,5 +77,5 @@ func (l *linuxUsernsInit) Init() error {
|
||||
if syscall.Getppid() == 1 {
|
||||
return syscall.Kill(syscall.Getpid(), syscall.SIGKILL)
|
||||
}
|
||||
return system.Execv(l.args[0], l.args[0:], l.config.Env)
|
||||
return system.Execv(l.args[0], l.args[0:], l.env)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user