Package: ntpsec
Version: 1.2.2+dfsg1-1+deb12u1
Severity: normal

Dear Maintainer,

to be able to use my USB-attached reference clock ("GUDE Expert
mouseCLOCK USB v2.0"), I had to edit /etc/apparmor.d/usb.sbin.ntpd (see
attached patch).

Additionally, I added an udev rule in
/etc/udev/rules.d/persistent-refclock.rules with these contents:

KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="e88a", 
SYMLINK+="refclock-%m" MODE="644"

But the udev rule is probably outside the scope of the ntpsec package.

After these changes, I can use the device with the following
configuration in ntp.conf:

refclock generic subtype 19

Regards

Carsten

--- usr.sbin.ntpd-backup	2023-07-29 22:52:36.000000000 +0200
+++ usr.sbin.ntpd	2024-06-02 14:30:27.280164420 +0200
@@ -38,6 +38,8 @@
   @{NTPD_DEVICE} rw,
   # pps devices are almost exclusively used with NTP
   /dev/pps[0-9]* rw,
+  /dev/refclock-[0-9]* rw,
+  /dev/ttyUSB[0-9]* rw,
 
   /{,s}bin/      r,
   /usr/{,s}bin/  r,

Reply via email to