Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export BuiltinDefaultPolicyPath #2562

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion signature/policy_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
// systemDefaultPolicyPath is the policy path used for DefaultPolicy().
// You can override this at build time with
// -ldflags '-X github.com/containers/image/v5/signature.systemDefaultPolicyPath=$your_path'
var systemDefaultPolicyPath = builtinDefaultPolicyPath
var systemDefaultPolicyPath = BuiltinDefaultPolicyPath

// userPolicyFile is the path to the per user policy path.
var userPolicyFile = filepath.FromSlash(".config/containers/policy.json")
Expand Down
4 changes: 2 additions & 2 deletions signature/policy_paths_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

package signature

// builtinDefaultPolicyPath is the policy path used for DefaultPolicy().
// BuiltinDefaultPolicyPath is the policy path used for DefaultPolicy().
// DO NOT change this, instead see systemDefaultPolicyPath above.
const builtinDefaultPolicyPath = "/etc/containers/policy.json"
const BuiltinDefaultPolicyPath = "/etc/containers/policy.json"
4 changes: 2 additions & 2 deletions signature/policy_paths_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

package signature

// builtinDefaultPolicyPath is the policy path used for DefaultPolicy().
// BuiltinDefaultPolicyPath is the policy path used for DefaultPolicy().
// DO NOT change this, instead see systemDefaultPolicyPath above.
const builtinDefaultPolicyPath = "/usr/local/etc/containers/policy.json"
const BuiltinDefaultPolicyPath = "/usr/local/etc/containers/policy.json"