From e0487c15207258f90cd49de63bea73da54ef9200 Mon Sep 17 00:00:00 2001 From: "Brad P. Crochet" Date: Tue, 20 Jun 2023 16:16:17 -0400 Subject: [PATCH] Make .cache exclusion broader Expand the .cache exlusion to be anywhere in usr/ instead of usr/lib64/. Signed-off-by: Brad P. Crochet --- internal/policy/container/has_modified_files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/policy/container/has_modified_files.go b/internal/policy/container/has_modified_files.go index dcf72ad6..297ca69e 100644 --- a/internal/policy/container/has_modified_files.go +++ b/internal/policy/container/has_modified_files.go @@ -352,7 +352,7 @@ func prefixAndSuffixIsExcluded(ctx context.Context, s string) bool { Prefix string Suffix string }{ - {Prefix: "usr/lib64/", Suffix: ".cache"}, + {Prefix: "usr/", Suffix: ".cache"}, } for _, v := range excl {