From 66b3fcbc5069335770a6fb57021343232c354f78 Mon Sep 17 00:00:00 2001 From: pacien Date: Mon, 12 Jul 2021 00:14:32 +0200 Subject: deps: update tinc to 1.1pre18 --- app/CMakeLists.txt | 6 ++--- ...ncctl-restrict-umask-argument-for-FORTIFY.patch | 31 ---------------------- 2 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 app/src/main/c/0001-tincctl-restrict-umask-argument-for-FORTIFY.patch (limited to 'app') diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index b4853eb..181a27a 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -54,10 +54,8 @@ ExternalProject_Add(libressl ExternalProject_Add(tinc DEPENDS lzo libressl - URL https://github.com/gsliepen/tinc/archive/3ee0d5dddb56a13b8f3c50637e3cd075c701c9aa.tar.gz - URL_HASH SHA256=3a901e7e59d50675b311087ea202f5e409bf69df91d09d7798a0813f3ec05e13 - # TODO: remove patch once merged in upstream (https://github.com/gsliepen/tinc/pull/251) - PATCH_COMMAND patch -p1 < ${PROJECT_SOURCE_DIR}/src/main/c/0001-tincctl-restrict-umask-argument-for-FORTIFY.patch + URL https://tinc-vpn.org/packages/tinc-1.1pre18.tar.gz + URL_HASH SHA256=2757ddc62cf64b411f569db2fa85c25ec846c0db110023f6befb33691f078986 CONFIGURE_COMMAND autoreconf -fsi && /configure ${xCONFIG} --with-openssl=${CMAKE_CURRENT_BINARY_DIR}/usr/local diff --git a/app/src/main/c/0001-tincctl-restrict-umask-argument-for-FORTIFY.patch b/app/src/main/c/0001-tincctl-restrict-umask-argument-for-FORTIFY.patch deleted file mode 100644 index 85ab949..0000000 --- a/app/src/main/c/0001-tincctl-restrict-umask-argument-for-FORTIFY.patch +++ /dev/null @@ -1,31 +0,0 @@ -From b6498e6402d9681743b697c1c9f0760448b3be54 Mon Sep 17 00:00:00 2001 -From: pacien -Date: Wed, 9 Sep 2020 01:24:28 +0200 -Subject: [PATCH] tincctl: restrict umask argument for FORTIFY - -`umask(mode)` calls that do not verify `(mode & 0777) == mode` are -rejected when the libc FORTIFY checks are enabled [1]. - -The unrestricted `~perms` was indeed making this assertion fail. - -[1]: https://android.googlesource.com/platform/bionic/+/refs/tags/android-11.0.0_r3/libc/bionic/fortify.cpp#404 ---- - src/tincctl.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/tincctl.c b/src/tincctl.c -index 08f30189..11c1a96c 100644 ---- a/src/tincctl.c -+++ b/src/tincctl.c -@@ -237,7 +237,7 @@ static bool parse_options(int argc, char **argv) { - FILE *fopenmask(const char *filename, const char *mode, mode_t perms) { - mode_t mask = umask(0); - perms &= ~mask; -- umask(~perms); -+ umask(~perms & 0777); - FILE *f = fopen(filename, mode); - - if(!f) { --- -2.25.4 - -- cgit v1.2.3