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