diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index dacbc1837..0011a81ea 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,6 +1,12 @@ ZeroTier Release Notes ====== +# 2022-04-11 -- Version 1.8.8 + + * Fix a local privilege escalation bug in the Windows installer. + * Dependency fix for some Ubuntu versions. + * No changes for other platforms. Windows upgrade recommended, everyone else optional. + # 2022-03-30 -- Version 1.8.7 * Fix for dependency installations in Windows MSI package. diff --git a/debian/changelog b/debian/changelog index 3c2655421..9d74a5b6d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +zerotier-one (1.8.8) unstable; urgency=medium + + * See RELEASE-NOTES.md for release notes. + + -- Adam Ierymenko Mon, 11 Apr 2022 01:00:00 -0700 + zerotier-one (1.8.7) unstable; urgency=medium * See RELEASE-NOTES.md for release notes. diff --git a/debian/control b/debian/control index e8498070b..541dcea2b 100644 --- a/debian/control +++ b/debian/control @@ -10,7 +10,7 @@ Homepage: https://www.zerotier.com/ Package: zerotier-one Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, iproute2, adduser, libstdc++6, openssl +Depends: ${shlibs:Depends}, ${misc:Depends}, iproute2, adduser, libstdc++6 (>= 5), openssl Homepage: https://www.zerotier.com/ Description: ZeroTier network virtualization service ZeroTier One lets you join ZeroTier virtual networks and diff --git a/entrypoint.sh.release b/entrypoint.sh.release index d8222305b..bb0744e82 100644 --- a/entrypoint.sh.release +++ b/entrypoint.sh.release @@ -1,7 +1,7 @@ #!/bin/sh grepzt() { - [ -f /var/lib/zerotier-one/zerotier-one.pid -a -n "$(cat /var/lib/zerotier-one/zerotier-one.pid)" -a -d "/proc/$(cat /var/lib/zerotier-one/zerotier-one.pid)" ] + [ -f /var/lib/zerotier-one/zerotier-one.pid -a -n "$(cat /var/lib/zerotier-one/zerotier-one.pid 2>/dev/null)" -a -d "/proc/$(cat /var/lib/zerotier-one/zerotier-one.pid 2>/dev/null)" ] return $? } @@ -33,29 +33,57 @@ fi mkztfile zerotier-one.port 0600 "9993" killzerotier() { - echo "Killing zerotier" - kill $(cat /var/lib/zerotier-one/zerotier-one.pid) + log "Killing zerotier" + kill $(cat /var/lib/zerotier-one/zerotier-one.pid 2>/dev/null) exit 0 } +log_header() { + echo -n "\r=>" +} + +log_detail_header() { + echo -n "\r===>" +} + +log() { + echo "$(log_header)" "$@" +} + +log_params() { + title=$1 + shift + log "$title" "[$@]" +} + +log_detail() { + echo "$(log_detail_header)" "$@" +} + +log_detail_params() { + title=$1 + shift + log_detail "$title" "[$@]" +} + trap killzerotier INT TERM -echo "Configuring networks to join" +log "Configuring networks to join" mkdir -p /var/lib/zerotier-one/networks.d -echo "joining networks: $@" +log_params "Joining networks:" $@ for i in "$@" do - echo "Configuring join for $i" + log_detail_params "Configuring join:" "$i" touch "/var/lib/zerotier-one/networks.d/${i}.conf" done -echo "starting zerotier" +log "Starting ZeroTier" nohup /usr/sbin/zerotier-one & while ! grepzt do - echo "zerotier hasn't started, waiting a second" + log_detail "ZeroTier hasn't started, waiting a second" if [ -f nohup.out ] then @@ -65,7 +93,7 @@ do sleep 1 done -echo "Writing healthcheck for networks: $@" +log_params "Writing healthcheck for networks:" $@ cat >/healthcheck.sh <USE_HFS+_COMPRESSION VERSION - 1.8.7 + 1.8.8 TYPE 0 diff --git a/ext/installfiles/windows/ZeroTier One.aip b/ext/installfiles/windows/ZeroTier One.aip index c3fca20b2..e623a3263 100644 --- a/ext/installfiles/windows/ZeroTier One.aip +++ b/ext/installfiles/windows/ZeroTier One.aip @@ -30,10 +30,10 @@ - + - + @@ -52,31 +52,37 @@ - + - + - + - - - - - - + + + + + + - + + + + + + + @@ -250,6 +256,12 @@ + + + + + + @@ -289,6 +301,7 @@ + @@ -337,6 +350,12 @@ + + + + + + @@ -346,7 +365,7 @@ - + @@ -372,7 +391,7 @@ - + @@ -382,17 +401,20 @@ + + - - + + - + + @@ -405,6 +427,23 @@ + + + + + + + + + + + + + + + + + @@ -491,7 +530,7 @@ - + diff --git a/service/OneService.cpp b/service/OneService.cpp index e585a464e..9ede34e3b 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -2294,6 +2294,7 @@ public: fprintf(stderr,"ERROR: unable to add ip address %s" ZT_EOL_S, ip->toString(ipbuf)); } } +#endif #ifdef __APPLE__ if (!MacDNSHelper::addIps(n.config().nwid, n.config().mac, n.tap()->deviceName().c_str(), newManagedIps)) diff --git a/version.h b/version.h index 0f2a7e0ac..86bc38eb6 100644 --- a/version.h +++ b/version.h @@ -27,7 +27,7 @@ /** * Revision */ -#define ZEROTIER_ONE_VERSION_REVISION 7 +#define ZEROTIER_ONE_VERSION_REVISION 8 /** * Build version diff --git a/zerotier-one.spec b/zerotier-one.spec index d84455c11..9d18c78ca 100644 --- a/zerotier-one.spec +++ b/zerotier-one.spec @@ -1,5 +1,5 @@ Name: zerotier-one -Version: 1.8.7 +Version: 1.8.8 Release: 1%{?dist} Summary: ZeroTier network virtualization service @@ -165,6 +165,9 @@ esac %endif %changelog +* Fri Apr 11 2022 Adam Ierymenko - 1.8.8 +- see https://github.com/zerotier/ZeroTierOne for release notes + * Fri Mar 21 2022 Adam Ierymenko - 1.8.7 - see https://github.com/zerotier/ZeroTierOne for release notes