]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homework: add debug log message whenever we applied a uidmap to a mount 21506/head
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Nov 2021 17:40:36 +0000 (18:40 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Nov 2021 17:42:08 +0000 (18:42 +0100)
src/home/homework-mount.c

index 1e63dbed41089e626e6775d17692201e39d54bdb..0b028dad37690accc33095bc0314b05ced0e13e2 100644 (file)
@@ -283,6 +283,8 @@ int home_shift_uid(int dir_fd, const char *target, uid_t stored_uid, uid_t expos
         if (r < 0)
                 return log_error_errno(errno, "Failed to apply UID/GID map: %m");
 
+        log_debug("Applied uidmap mount to %s. Mapping is " UID_FMT " → " UID_FMT ".", strna(target), stored_uid, exposed_uid);
+
         if (ret_mount_fd)
                 *ret_mount_fd = TAKE_FD(mount_fd);