From: Lennart Poettering Date: Mon, 25 Nov 2024 10:54:21 +0000 (+0100) Subject: nspawn: add some additional useful debug logging X-Git-Tag: v258-rc1~1808^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf1ef54d307fcf0b50028959ba51263e91f9f11c;p=thirdparty%2Fsystemd.git nspawn: add some additional useful debug logging --- diff --git a/src/nspawn/nspawn-mount.c b/src/nspawn/nspawn-mount.c index 622a3d38e62..eda455c8715 100644 --- a/src/nspawn/nspawn-mount.c +++ b/src/nspawn/nspawn-mount.c @@ -1409,6 +1409,8 @@ done: int pin_fully_visible_fs(void) { int r; + log_debug("Pinning fully visible API FS"); + (void) mkdir_p(NSPAWN_PRIVATE_FULLY_VISIBLE_PROCFS, 0755); (void) mkdir_p(NSPAWN_PRIVATE_FULLY_VISIBLE_SYSFS, 0755); @@ -1443,6 +1445,8 @@ int wipe_fully_visible_fs(int mntns_fd) { _cleanup_close_ int orig_mntns_fd = -EBADF; int r, rr; + log_debug("Wiping fully visible API FS"); + r = namespace_open(0, /* ret_pidns_fd = */ NULL, &orig_mntns_fd,