1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-27 14:03:43 +03:00

homework: add debug log message whenever we applied a uidmap to a mount

This commit is contained in:
Lennart Poettering 2021-11-24 18:40:36 +01:00
parent b05f4495bd
commit 6c68d5ad73

View 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);