From 9dd365fdb540385f653b97110d31755f5371462f Mon Sep 17 00:00:00 2001 From: Archana Choudhary Date: Mon, 16 Jun 2025 11:52:58 +0000 Subject: [PATCH] genpolicy: fix mount source check in rules.rego This commit fixes the mount source check in rules.rego. Signed-off-by: Archana Choudhary --- src/tools/genpolicy/rules.rego | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/genpolicy/rules.rego b/src/tools/genpolicy/rules.rego index 26ded027d4..722fbb221f 100644 --- a/src/tools/genpolicy/rules.rego +++ b/src/tools/genpolicy/rules.rego @@ -1252,7 +1252,7 @@ allow_mount_point(p_storage, i_storage, bundle_id, sandbox_id, layer_ids) if { mount1 := p_storage.mount_point print("allow_mount_point 3: mount1 =", mount1) - mount2 := replace(mount1, "$(cpath)", policy_data.common.cpath) + mount2 := replace(mount1, "$(cpath)", policy_data.common.mount_source_cpath) print("allow_mount_point 3: mount2 =", mount2) mount3 := replace(mount2, "$(sandbox-id)", sandbox_id)