From 1a48a4fb5a7b948724a98e2c29a0f686d0f6324a Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 5 Dec 2024 16:16:32 -0800 Subject: [PATCH] tweak policy --- pkg/model/policy.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/model/policy.go b/pkg/model/policy.go index 026d441..2f13b4a 100644 --- a/pkg/model/policy.go +++ b/pkg/model/policy.go @@ -14,8 +14,10 @@ type ScriptPolicy struct { // Hash of the source code that leads to this policy. // If this is a replacement mapping, the original source may not be pointed to by any policy. // The original source should still exist in the scripts table, which can be located by the same hash. - Hash uint64 - // The ID of the replacement source (ScriptPolicyReplace) or verbatim source (other) - ScriptID int64 + FromScriptHash uint64 + // The ID of the replacement source (ScriptPolicyReplace) + // or verbatim source (ScriptPolicyAllowed) + // or 0 (other) + ToScriptID int64 Policy Policy }