aboutsummaryrefslogtreecommitdiff
path: root/security/opkssh/files/patch-policy_enforcer.go
diff options
context:
space:
mode:
Diffstat (limited to 'security/opkssh/files/patch-policy_enforcer.go')
-rw-r--r--security/opkssh/files/patch-policy_enforcer.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/opkssh/files/patch-policy_enforcer.go b/security/opkssh/files/patch-policy_enforcer.go
new file mode 100644
index 000000000000..0330f82a4251
--- /dev/null
+++ b/security/opkssh/files/patch-policy_enforcer.go
@@ -0,0 +1,11 @@
+--- policy/enforcer.go.orig 2025-11-15 20:20:44 UTC
++++ policy/enforcer.go
+@@ -54,7 +54,7 @@ type checkedClaims struct {
+ }
+
+ // The default location for policy plugins
+-const pluginPolicyDir = "/etc/opk/policy.d"
++const pluginPolicyDir = "%%PREFIX%%/etc/opk/policy.d"
+
+ // Validates that the server defined identity attribute matches the
+ // respective claim from the identity token