core: clone_device_node(): add debug message
For people who use debug messages, maybe it is helpful to know that PrivateDevices= failed due to mknod(), and which device node. (The other (un-logged) failures could be while mounting filesystems e.g. no CAP_SYS_ADMIN which is the common case, or missing /dev/shm or /dev/pts, or missing /dev/ptmx).
This commit is contained in:
@@ -523,7 +523,7 @@ static int clone_device_node(const char *d, const char *temporary_mount) {
|
||||
mac_selinux_create_file_clear();
|
||||
|
||||
if (r < 0)
|
||||
return -errno;
|
||||
return log_debug_errno(errno, "mknod failed for %s: %m", d);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user