daemon: udev: allow read access to PHC

Allow users to access the PTP hardware clock

Related to #3217
This commit is contained in:
Dmitry Sharshakov 2024-01-20 11:54:17 +03:00
parent 89077d16ec
commit 78642cc53b
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,6 @@
# This file was installed by PipeWire project for its pipewire-aes67
#
# This is used to give readonly access to the PTP hardware clock.
# PipeWire uses this to follow PTP grandmaster time. It should be synced by another service
#
KERNEL=="ptp[0-9]*", MODE="0644"

View file

@ -162,3 +162,13 @@ subdir('filter-chain')
if systemd.found()
subdir('systemd')
endif
aes67_udevrules = [
'90-pipewire-aes67-ptp.rules',
]
if libudev_dep.found()
install_data(aes67_udevrules,
install_dir : udevrulesdir,
)
endif