mirror of
https://github.com/containers/podman.git
synced 2025-11-13 17:47:13 +08:00
Vendor in new opencontainers/selinux
Also update vendor of containers/common,buildah,storage,image Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2069586 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
8
vendor/github.com/containers/common/pkg/secrets/passdriver/passdriver.go
generated
vendored
8
vendor/github.com/containers/common/pkg/secrets/passdriver/passdriver.go
generated
vendored
@@ -30,6 +30,8 @@ type driverConfig struct {
|
||||
Root string
|
||||
// KeyID contains the key id that will be used for encryption (i.e. user@domain.tld)
|
||||
KeyID string
|
||||
// GPGHomedir is the homedir where the GPG keys are stored
|
||||
GPGHomedir string
|
||||
}
|
||||
|
||||
func (cfg *driverConfig) ParseOpts(opts map[string]string) {
|
||||
@@ -40,6 +42,9 @@ func (cfg *driverConfig) ParseOpts(opts map[string]string) {
|
||||
if val, ok := opts["key"]; ok {
|
||||
cfg.KeyID = val
|
||||
}
|
||||
if val, ok := opts["gpghomedir"]; ok {
|
||||
cfg.GPGHomedir = val
|
||||
}
|
||||
}
|
||||
|
||||
func defaultDriverConfig() *driverConfig {
|
||||
@@ -156,6 +161,9 @@ func (d *Driver) Delete(id string) error {
|
||||
}
|
||||
|
||||
func (d *Driver) gpg(ctx context.Context, in io.Reader, out io.Writer, args ...string) error {
|
||||
if d.GPGHomedir != "" {
|
||||
args = append([]string{"--homedir", d.GPGHomedir}, args...)
|
||||
}
|
||||
cmd := exec.CommandContext(ctx, "gpg", args...)
|
||||
cmd.Env = os.Environ()
|
||||
cmd.Stdin = in
|
||||
|
||||
Reference in New Issue
Block a user