Bug 2092943

Summary: uuidd time based UUIDs are without MAC address
Product: Red Hat Enterprise Linux 9 Reporter: Karel Zak <kzak>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED ERRATA QA Contact: Radka Brychtova <rskvaril>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: util-linux-2.37.4-8.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 11:23:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karel Zak 2022-06-02 15:06:08 UTC
Originally reported for upstream: https://github.com/util-linux/util-linux/issues/1704

Reproducer (see last UUID segment):

$cat /sys/class/net/eno1/address 
78:24:af:89:16:70

$ uuidgen -t
d1fd6e2a-e280-11ec-bfa6-7824af891670
                        ^^^^^^^^^^^^

$ sudo systemctl start uuidd.service uuidd.socket

$ uuidgen -t
dca6f21a-e280-11ec-aa9a-a1947ddd01b8
                        ^^^^^^^^^^^^

The problem is the restrictive systemd service configuration

         RestrictAddressFamilies=AF_UNIX

but libuuid uses

         sd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP);

to get MAC address.

Fixed by upstream commit https://github.com/util-linux/util-linux/commit/304b4dc4936b115ca33af5325c3b04d0997c1353

Comment 8 errata-xmlrpc 2022-11-15 11:23:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (util-linux bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8404