forked from pool/nqptp
- Add backport-b5321a88d21b854aaa461dc0f6c226d650309b91.patch Remove setcap call. - Add backport-050a8c2de9f3e1f4859abf9b36d2f18afd4c34d7.patch Set capability in the systemd unit instead. - Add disable-user-group-generation.patch Disable user/group generation in the Makefile. Let systemd-sysusers handle this instead. - Update to 1.2.4 - Further changes are introduced to make the communication path between NQPTP and Shairport Sync resistant to outside interference. These changes have necessitated changing the SMI interface. The SMI interface is now at version 10, and Shairport Sync must also be updated to be compatible with it. - Update to 1.2.3 - Fix CVE-2023-43771: nqptp: NULL pointer dereference caused by invalid control port message (boo#1213060) OBS-URL: https://build.opensuse.org/package/show/network:time/nqptp?expand=0&rev=4
14 lines
769 B
Diff
14 lines
769 B
Diff
Index: nqptp-1.2.4/Makefile.am
|
|
===================================================================
|
|
--- nqptp-1.2.4.orig/Makefile.am
|
|
+++ nqptp-1.2.4/Makefile.am
|
|
@@ -24,8 +24,6 @@ if BUILD_FOR_LINUX
|
|
# If you want to run it from the command line, e.g. for debugging, run it as root user.
|
|
# no installer for System V
|
|
if INSTALL_SYSTEMD_STARTUP
|
|
- getent group nqptp &>/dev/null || groupadd -r nqptp &>/dev/null
|
|
- getent passwd nqptp &> /dev/null || useradd -r -M -g nqptp -s /usr/sbin/nologin nqptp &>/dev/null
|
|
[ -e $(DESTDIR)$(libdir)/systemd/system ] || mkdir -p $(DESTDIR)$(libdir)/systemd/system
|
|
# don't replace a service file if it already exists...
|
|
[ -e $(DESTDIR)$(libdir)/systemd/system/nqptp.service ] || cp nqptp.service $(DESTDIR)$(libdir)/systemd/system
|