Skip to content

Commit b7932a2

Browse files
committed
Remove unused ExecFifoPath
In container process's Init function, we use fd + execFifoFilename to open exec fifo, so this field in init config is never used. Signed-off-by: Qiang Huang <[email protected]>
1 parent df4d872 commit b7932a2

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

libcontainer/container_linux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,6 @@ func (c *linuxContainer) newInitConfig(process *Process) *initConfig {
450450
AppArmorProfile: c.config.AppArmorProfile,
451451
ProcessLabel: c.config.ProcessLabel,
452452
Rlimits: c.config.Rlimits,
453-
ExecFifoPath: filepath.Join(c.root, execFifoFilename),
454453
}
455454
if process.NoNewPrivileges != nil {
456455
cfg.NoNewPrivileges = *process.NoNewPrivileges

libcontainer/init_linux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ type initConfig struct {
5959
PassedFilesCount int `json:"passed_files_count"`
6060
ContainerId string `json:"containerid"`
6161
Rlimits []configs.Rlimit `json:"rlimits"`
62-
ExecFifoPath string `json:"start_pipe_path"`
6362
CreateConsole bool `json:"create_console"`
6463
}
6564

0 commit comments

Comments
 (0)