From eaf668165e7e62d274f16a9aeeff3ccc3b7736fb Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Wed, 23 Sep 2020 19:30:15 +0300 Subject: [PATCH] putty: disable setuid calls --- x11-packages/putty/build.sh | 2 +- x11-packages/putty/no-priv-drop.patch | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 x11-packages/putty/no-priv-drop.patch diff --git a/x11-packages/putty/build.sh b/x11-packages/putty/build.sh index d43b4d922..21b5986a1 100644 --- a/x11-packages/putty/build.sh +++ b/x11-packages/putty/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A terminal integrated SSH/Telnet client" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_MAINTAINER="Leonid Pliushch " TERMUX_PKG_VERSION=0.73 -TERMUX_PKG_REVISION=17 +TERMUX_PKG_REVISION=18 TERMUX_PKG_SRCURL=https://the.earth.li/~sgtatham/putty/${TERMUX_PKG_VERSION}/putty-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=3db0b5403fb41aecd3aa506611366650d927650b6eb3d839ad4dcc782519df1c TERMUX_PKG_DEPENDS="atk, gdk-pixbuf, glib, gtk3, libandroid-glob, libandroid-shmem, libcairo, libx11, pango" diff --git a/x11-packages/putty/no-priv-drop.patch b/x11-packages/putty/no-priv-drop.patch new file mode 100644 index 000000000..2f2d92d6f --- /dev/null +++ b/x11-packages/putty/no-priv-drop.patch @@ -0,0 +1,19 @@ +diff -uNr putty-0.73/unix/uxpty.c putty-0.73.mod/unix/uxpty.c +--- putty-0.73/unix/uxpty.c 2019-09-22 12:14:52.000000000 +0300 ++++ putty-0.73.mod/unix/uxpty.c 2020-09-23 19:29:25.338141793 +0300 +@@ -562,6 +562,7 @@ + #endif + } + ++#ifndef __ANDROID__ + /* Drop privs. */ + { + #ifndef HAVE_NO_SETRESUID +@@ -587,6 +588,7 @@ + } + #endif + } ++#endif + + #endif /* NO_PTY_PRE_INIT */ +