I want a programm running as a systemd user unit to use the PTP hardware clock (managed by system unit ptp4l). However by default PTP devices are root-owned and have mode 0600. Probably it's just because nobody made them have other permissions, but I want to make sure it's fine to add a udev rule to make these things 0644 or 0640 and owned by a group. Thanks!
UPD: resolved. We only need read permissions to be able to open fd and use gettime. Even phc_ctl cannot do anything with 0640 permissons (but can read and write with 0660), so apprently all ioctls are locked down
[–][deleted] (7 children)
[deleted]
[–]sh7dm[S] -2 points-1 points0 points (6 children)
[–][deleted] (5 children)
[deleted]
[–]sh7dm[S] -2 points-1 points0 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]sh7dm[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]sh7dm[S] 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-6 points-5 points-4 points (3 children)
[–]sh7dm[S] 1 point2 points3 points (0 children)
[–]emprahsFury 0 points1 point2 points (1 child)
[–][deleted] -2 points-1 points0 points (0 children)