From: Lennart Poettering Date: Thu, 19 Dec 2024 13:27:03 +0000 (+0100) Subject: mount-util: add debug message to make_userns() failure X-Git-Tag: v258-rc1~1808^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1b128d0e298942deb4a2f6a298f476b9e285a0f;p=thirdparty%2Fsystemd.git mount-util: add debug message to make_userns() failure --- diff --git a/src/shared/mount-util.c b/src/shared/mount-util.c index c8486b1b4a8..756fb74c354 100644 --- a/src/shared/mount-util.c +++ b/src/shared/mount-util.c @@ -1321,7 +1321,7 @@ int make_userns(uid_t uid_shift, uid_t uid_range, uid_t source_owner, uid_t dest * process whose only purpose is to give us a new user namespace. It's killed when we got it. */ if (!userns_shift_range_valid(uid_shift, uid_range)) - return -EINVAL; + return log_debug_errno(SYNTHETIC_ERRNO(EINVAL), "Invalid UID range for user namespace."); if (IN_SET(idmapping, REMOUNT_IDMAPPING_NONE, REMOUNT_IDMAPPING_HOST_ROOT)) { if (asprintf(&line, UID_FMT " " UID_FMT " " UID_FMT "\n", 0u, uid_shift, uid_range) < 0)