mirror of
https://github.com/containers/podman.git
synced 2025-10-26 18:54:17 +08:00
According to https://systemd.io/CONTAINER_INTERFACE/, systemd will try take control over /dev/ttyN if exported, which can cause conflicts with the host's tty in privileged containers. Thus we will not expose these to privileged containers in systemd mode, as this is a bad idea according to systemd's maintainers. Additionally, this commit adds a bats regression test to check that no /dev/ttyN are present in a privileged container in systemd mode This fixes https://github.com/containers/podman/issues/15878 Signed-off-by: Dan Čermák <dcermak@suse.com>
19 lines
360 B
Go
19 lines
360 B
Go
//go:build freebsd
|
|
// +build freebsd
|
|
|
|
package util
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/opencontainers/runtime-tools/generate"
|
|
)
|
|
|
|
func GetContainerPidInformationDescriptors() ([]string, error) {
|
|
return []string{}, errors.New("this function is not supported on freebsd")
|
|
}
|
|
|
|
func AddPrivilegedDevices(g *generate.Generator, systemdMode bool) error {
|
|
return nil
|
|
}
|