mirror of
https://github.com/containers/podman.git
synced 2025-12-02 11:08:36 +08:00
system service: unset NOTIFY_SOCKET
Unset the NOTIFY_SOCKET environment variable after sending the MAIN_PID and READY message. This avoids any unintentional side-effects of other code paths using the socket assuming they'd run in a non-server short-lived Podman process. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
8
vendor/github.com/containers/common/libnetwork/cni/run_freebsd.go
generated
vendored
8
vendor/github.com/containers/common/libnetwork/cni/run_freebsd.go
generated
vendored
@@ -8,6 +8,12 @@ import (
|
||||
// add the default address. Note: this will also add ::1 as a side
|
||||
// effect.
|
||||
func setupLoopback(namespacePath string) error {
|
||||
// The jexec wrapper runs the ifconfig command inside the jail.
|
||||
// Try to run the command using ifconfig's -j flag (supported in 13.3 and later)
|
||||
if err := exec.Command("ifconfig", "-j", namespacePath, "lo0", "inet", "127.0.0.1").Run(); err == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Fall back to using the jexec wrapper to run the ifconfig command
|
||||
// inside the jail.
|
||||
return exec.Command("jexec", namespacePath, "ifconfig", "lo0", "inet", "127.0.0.1").Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user