From: Michael Tremer Date: Sun, 5 Nov 2023 18:39:39 +0000 (+0000) Subject: jail: Log the mountpoints when entering the inner namespaces X-Git-Tag: 0.9.30~1298 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f5725223dc7def7f2224705b97675521df0f20d;p=pakfire.git jail: Log the mountpoints when entering the inner namespaces There is only little sense in logging the mount table of the host system as it only makes the debug log very noisy. Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/jail.c b/src/libpakfire/jail.c index d9b8cd7a6..595e269df 100644 --- a/src/libpakfire/jail.c +++ b/src/libpakfire/jail.c @@ -1473,9 +1473,6 @@ static int pakfire_jail_mount(struct pakfire_jail* jail, struct pakfire_jail_exe return r; } - // Log all mountpoints - pakfire_mount_list(jail->ctx); - return 0; } @@ -1797,6 +1794,9 @@ static int pakfire_jail_child2(struct pakfire_jail* jail, DEBUG(jail->pakfire, " UID: %u (effective %u)\n", uid, euid); DEBUG(jail->pakfire, " GID: %u (effective %u)\n", gid, egid); + // Log all mountpoints + pakfire_mount_list(jail->ctx); + // Fail if we are not PID 1 if (pid != 1) { CTX_ERROR(jail->ctx, "Child process is not PID 1\n");