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:
Alan Jenkins
2018-01-18 13:58:13 +00:00
parent 5a7f87a9e0
commit 225874dc9c
+1 -1
View File
@@ -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;
}