8d419f
From 607c82526a5085885f4af96f1979572c72c300a4 Mon Sep 17 00:00:00 2001
8d419f
From: Yu Watanabe <watanabe.yu+github@gmail.com>
8d419f
Date: Thu, 17 Mar 2022 03:42:41 +0900
8d419f
Subject: [PATCH] core: ExecContext::restrict_filesystems is set of string
8d419f
8d419f
(cherry picked from commit 8fe84dc8de60ae8995e53e4d47b44c61626c0526)
8d419f
8d419f
Related: #2082131
8d419f
---
8d419f
 src/core/execute.c | 6 +++---
8d419f
 1 file changed, 3 insertions(+), 3 deletions(-)
8d419f
8d419f
diff --git a/src/core/execute.c b/src/core/execute.c
8d419f
index 306e563e4f..34b0478ead 100644
8d419f
--- a/src/core/execute.c
8d419f
+++ b/src/core/execute.c
8d419f
@@ -5916,9 +5916,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
8d419f
 
8d419f
 #if HAVE_LIBBPF
8d419f
         if (exec_context_restrict_filesystems_set(c)) {
8d419f
-                char **e;
8d419f
-                SET_FOREACH(e, c->restrict_filesystems)
8d419f
-                        fprintf(f, "%sRestrictFileSystems: %s\n", prefix, *e);
8d419f
+                char *fs;
8d419f
+                SET_FOREACH(fs, c->restrict_filesystems)
8d419f
+                        fprintf(f, "%sRestrictFileSystems: %s\n", prefix, fs);
8d419f
         }
8d419f
 #endif
8d419f