From: Mike Yuan Date: Fri, 13 Oct 2023 22:21:35 +0000 (+0800) Subject: core: add MemoryKSM and SetLoginEnvironment to exec_context_dump X-Git-Tag: v255-rc1~246^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F29569%2Fhead;p=thirdparty%2Fsystemd.git core: add MemoryKSM and SetLoginEnvironment to exec_context_dump --- diff --git a/src/core/execute.c b/src/core/execute.c index d6392239874..06fcc741f87 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -944,6 +944,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) { prefix, protect_proc_to_string(c->protect_proc), prefix, proc_subset_to_string(c->proc_subset)); + if (c->set_login_environment >= 0) + fprintf(f, "%sSetLoginEnvironment: %s\n", prefix, yes_no(c->set_login_environment > 0)); + if (c->root_image) fprintf(f, "%sRootImage: %s\n", prefix, c->root_image); @@ -1008,6 +1011,9 @@ void exec_context_dump(const ExecContext *c, FILE* f, const char *prefix) { fprintf(f, "%sTimeoutCleanSec: %s\n", prefix, FORMAT_TIMESPAN(c->timeout_clean_usec, USEC_PER_SEC)); + if (c->memory_ksm >= 0) + fprintf(f, "%sMemoryKSM: %s\n", prefix, yes_no(c->memory_ksm > 0)); + if (c->nice_set) fprintf(f, "%sNice: %i\n", prefix, c->nice);