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