automation-tests/common/pkg/config
Doug Rabson 4b906d8159 pkg/config: Fix DefaultSignaturePath on FreeBSD
The correct location on FreeBSD is /usr/local/etc/containers/policy.json
which is consistent with path conventions for installed packages. This
fixes 'podman commit' on FreeBSD.

There are several definitions of this path:

- c/image/signature has builtinDefaultPolicyPath and DefaultPolicy
- c/podman/pkg/trust has systemDefaultPolicyPath and DefaultPolicyPath
- c/common/pkg/config has DefaultSignaturePolicyPath

As far as I can tell, buildah uses c/image/signature which is why 'buildah
commit' was already working for me. Podman is using the c/common one. Very
confusing.

[NO NEW TESTS NEEDED]

Signed-off-by: Doug Rabson <dfr@rabson.org>
2022-11-09 16:50:45 +00:00
..
testdata Add support for returning image path with ARCH and OS Substitutions 2022-08-22 07:17:58 -04:00
config.go config: Add config entry for ocijail 2022-10-19 12:02:47 +01:00
config_darwin.go pkg/config: Fix DefaultSignaturePath on FreeBSD 2022-11-09 16:50:45 +00:00
config_freebsd.go pkg/config: Fix DefaultSignaturePath on FreeBSD 2022-11-09 16:50:45 +00:00
config_linux.go pkg/config: Fix DefaultSignaturePath on FreeBSD 2022-11-09 16:50:45 +00:00
config_local.go Change github.com/pkg/errors to use errors in pkg/config 2022-05-18 10:33:53 -04:00
config_local_test.go bump to golangci-lint v1.50.0 2022-10-17 15:03:07 +02:00
config_remote.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 11:04:40 +01:00
config_remote_test.go bump to golangci-lint v1.50.0 2022-10-17 15:03:07 +02:00
config_suite_test.go Gofumpt the code 2022-04-09 16:50:11 -07:00
config_test.go feat: add support for the youki OCI Runtime 2022-10-22 10:35:23 +08:00
config_unsupported.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 11:04:40 +01:00
config_windows.go pkg/config: Fix DefaultSignaturePath on FreeBSD 2022-11-09 16:50:45 +00:00
containers.conf feat: add support for the youki OCI Runtime 2022-10-22 10:35:23 +08:00
containers.conf-freebsd feat: add support for the youki OCI Runtime 2022-10-22 10:35:23 +08:00
default.go pkg/config: Fix DefaultSignaturePath on FreeBSD 2022-11-09 16:50:45 +00:00
default_darwin.go Adjust default volumes for windows compatibility 2022-08-19 17:09:25 +03:00
default_freebsd.go bump to golangci-lint v1.50.0 2022-10-17 15:03:07 +02:00
default_linux.go bump to golangci-lint v1.50.0 2022-10-17 15:03:07 +02:00
default_test.go bump to golangci-lint v1.50.0 2022-10-17 15:03:07 +02:00
default_unsupported.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 11:04:40 +01:00
default_windows.go Adjust default volumes for windows compatibility 2022-08-19 17:09:25 +03:00
nosystemd.go go fmt: use go 1.18 conditional-build syntax 2022-03-18 11:04:40 +01:00
pod_exit_policy.go containers.conf: add pod_exit_policy 2022-04-29 12:17:16 +02:00
pod_exit_policy_test.go containers.conf: add pod_exit_policy 2022-04-29 12:17:16 +02:00
pull_policy.go [CI:DOCS] improve pull-policy documentation 2022-07-07 14:08:32 +02:00
systemd.go bump to golangci-lint v1.50.0 2022-10-17 15:03:07 +02:00