From bf1ef54d307fcf0b50028959ba51263e91f9f11c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 25 Nov 2024 11:54:21 +0100 Subject: [PATCH] nspawn: add some additional useful debug logging --- src/nspawn/nspawn-mount.c | 4 ++++ 1 file changed, 4 insertions(+) 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, -- 2.47.3