mirror of
https://github.com/containers/podman.git
synced 2025-11-30 18:18:18 +08:00
Support a new concept in containers.conf called "modules". A "module" is a containers.conf file located at a specific directory. More than one module can be loaded in the specified order, following existing override semantics. There are three directories to load modules from: - $CONFIG_HOME/containers/containers.conf.modules - /etc/containers/containers.conf.modules - /usr/share/containers/containers.conf.modules With CONFIG_HOME pointing to $HOME/.config or, if set, $XDG_CONFIG_HOME. Absolute paths will be loaded as is, relative paths will be resolved relative to the three directories above allowing for admin configs (/etc/) to override system configs (/usr/share/) and user configs ($CONFIG_HOME) to override admin configs. Pulls in containers/common/pull/1599. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
24 lines
424 B
Go
24 lines
424 B
Go
//go:build gofuzz
|
|
// +build gofuzz
|
|
|
|
package sftp
|
|
|
|
import "bytes"
|
|
|
|
type sinkfuzz struct{}
|
|
|
|
func (*sinkfuzz) Close() error { return nil }
|
|
func (*sinkfuzz) Write(p []byte) (int, error) { return len(p), nil }
|
|
|
|
var devnull = &sinkfuzz{}
|
|
|
|
// To run: go-fuzz-build && go-fuzz
|
|
func Fuzz(data []byte) int {
|
|
c, err := NewClientPipe(bytes.NewReader(data), devnull)
|
|
if err != nil {
|
|
return 0
|
|
}
|
|
c.Close()
|
|
return 1
|
|
}
|