mirror of
https://github.com/containers/podman.git
synced 2025-11-29 17:48:05 +08:00
podman: new option --preserve-fd
add a new option --preserve-fd that allows to specify a list of FDs to pass down to the container. It is similar to --preserve-fds but it allows to specify a list of FDs instead of the maximum FD number to preserve. --preserve-fd and --preserve-fds are mutually exclusive. It requires crun since runc would complain if any fd below --preserve-fds is not preserved. Closes: https://github.com/containers/podman/issues/20844 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@@ -297,6 +297,7 @@ type ExecOptions struct {
|
||||
Interactive bool
|
||||
Latest bool
|
||||
PreserveFDs uint
|
||||
PreserveFD []uint
|
||||
Privileged bool
|
||||
Tty bool
|
||||
User string
|
||||
@@ -360,6 +361,7 @@ type ContainerRunOptions struct {
|
||||
InputStream *os.File
|
||||
OutputStream *os.File
|
||||
PreserveFDs uint
|
||||
PreserveFD []uint
|
||||
Rm bool
|
||||
SigProxy bool
|
||||
Spec *specgen.SpecGenerator
|
||||
|
||||
Reference in New Issue
Block a user