From 9b0b7fc795c1e38f77cd92d78e5e0a26ed06dea9 Mon Sep 17 00:00:00 2001 From: Dan Mihai Date: Thu, 4 Sep 2025 16:00:41 +0000 Subject: [PATCH] genpolicy: print Input and Policy storages Print the Storage data structures, to help with debugging. Signed-off-by: Dan Mihai --- src/tools/genpolicy/rules.rego | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/genpolicy/rules.rego b/src/tools/genpolicy/rules.rego index 721a6072ac..2d75a7bf33 100644 --- a/src/tools/genpolicy/rules.rego +++ b/src/tools/genpolicy/rules.rego @@ -1032,6 +1032,9 @@ mount_source_allows(p_mount, i_mount, bundle_id, sandbox_id) if { # Create container Storages allow_storages(p_storages, i_storages, bundle_id, sandbox_id) if { + print("allow_storages: p_storages =", p_storages) + print("allow_storages: i_storages =", i_storages) + p_count := count(p_storages) i_count := count(i_storages) img_pull_count := count([s | s := i_storages[_]; s.driver == "image_guest_pull"])