]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: ExecContext::restrict_filesystems is set of string
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 16 Mar 2022 18:42:41 +0000 (03:42 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 17 Mar 2022 11:09:59 +0000 (20:09 +0900)
src/core/execute.c

index 94cd198b4ddd7e39e60dc5ccd5256ac5860f7052..ba57bbc279149f9edd62c3ef954a04fd8165a023 100644 (file)
@@ -6080,9 +6080,11 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) {
         }
 
 #if HAVE_LIBBPF
-        if (exec_context_restrict_filesystems_set(c))
-                SET_FOREACH(e, c->restrict_filesystems)
-                        fprintf(f, "%sRestrictFileSystems: %s\n", prefix, *e);
+        if (exec_context_restrict_filesystems_set(c)) {
+                char *fs;
+                SET_FOREACH(fs, c->restrict_filesystems)
+                        fprintf(f, "%sRestrictFileSystems: %s\n", prefix, fs);
+        }
 #endif
 
         if (c->network_namespace_path)