DragonFlyBSD Kernel Audit
DF-2932 / fix.diff
← back to finding ↓ download raw
--- a/sys/kern/kern_uuid.c
+++ b/sys/kern/kern_uuid.c
@@ -85,7 +85,7 @@ SYSINIT(uuid_lock, SI_BOOT1_POST, SI_ORDER_ANY, uuid_lock
 static void
 uuid_node(uint16_t *node)
 {
-	if (if_getanyethermac(node, UUID_NODE_LEN) != 0)
-		read_random(node, UUID_NODE_LEN, 1);
+	/* RFC 4122 sec 6: do not embed the host MAC in v1 UUIDs. */
+	read_random(node, UUID_NODE_LEN, 1);
 	*((uint8_t*)node) |= 0x01;
 }