]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: grant read access to PTP devices for unprivileged users
authorCarolina Jubran <cjubran@nvidia.com>
Mon, 16 Feb 2026 09:24:53 +0000 (11:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Feb 2026 13:51:12 +0000 (14:51 +0100)
commit1e6854e112e9723be6108b83f6935ec7e04cea17
treec1a64f31d9ce5d8911985647278d8e6971abef4c
parentdbc83d635323430b8483731eac14237affa623a4
udev: grant read access to PTP devices for unprivileged users

Change the default udev rule for /dev/ptp* from 0660 to 0664,
allowing unprivileged users read-only access.

NIC telemetry and hardware logs often use device timestamps that must
be correlated with host time via read-only PTP ioctls (e.g.
cross-timestamp queries). Requiring privileged access makes these
workflows unnecessarily restrictive.

Older kernels lacked proper permission checks in some PTP ioctls.
Kernel commit b4e53b15c04e3852949003752f48f7a14ae39e86 ("ptp: Add PHC
file mode checks. Allow RO adjtime() without FMODE_WRITE.") introduces
the necessary file mode validation, ensuring that read access does not
permit clock modification or configuration changes, which still require
write permissions.

This commit has been backported to all actively maintained stable
kernel branches.

Related to #31034
NEWS
rules.d/50-udev-default.rules.in