summaryrefslogtreecommitdiffstats
path: root/src/home/homework-mount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-11-24 18:40:36 +0100
committerLennart Poettering <lennart@poettering.net>2021-11-24 18:42:08 +0100
commit6c68d5ad731da6e2d5d1c0c8ddfe536faaca8830 (patch)
tree452865ee53fb73c59e56a0b9df5450da2c2c3fe4 /src/home/homework-mount.c
parenthomework: fix a bad error propagation (diff)
downloadsystemd-6c68d5ad731da6e2d5d1c0c8ddfe536faaca8830.tar.xz
systemd-6c68d5ad731da6e2d5d1c0c8ddfe536faaca8830.zip
homework: add debug log message whenever we applied a uidmap to a mount
Diffstat (limited to 'src/home/homework-mount.c')
-rw-r--r--src/home/homework-mount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/home/homework-mount.c b/src/home/homework-mount.c
index 1e63dbed41..0b028dad37 100644
--- a/src/home/homework-mount.c
+++ b/src/home/homework-mount.c
@@ -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);