diff --git a/x11-packages/kf6-kcrash/build.sh b/x11-packages/kf6-kcrash/build.sh index 30f4e5f45e..9826227133 100644 --- a/x11-packages/kf6-kcrash/build.sh +++ b/x11-packages/kf6-kcrash/build.sh @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION='Support for application crash analysis and bug report fr TERMUX_PKG_LICENSE="LGPL-2.0, LGPL-3.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION="6.22.0" +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL="https://download.kde.org/stable/frameworks/${TERMUX_PKG_VERSION%.*}/kcrash-${TERMUX_PKG_VERSION}.tar.xz" TERMUX_PKG_SHA256=322d7ca0588c008746e997b398111328767b4bc87318e24a0ededa0c191e700e TERMUX_PKG_DEPENDS="kf6-kcoreaddons (>= ${TERMUX_PKG_VERSION%.*}), libc++, libx11, qt6-qtbase" diff --git a/x11-packages/kf6-kcrash/remove-setgroups-and-setuid.patch b/x11-packages/kf6-kcrash/remove-setgroups-and-setuid.patch new file mode 100644 index 0000000000..8b11ae4012 --- /dev/null +++ b/x11-packages/kf6-kcrash/remove-setgroups-and-setuid.patch @@ -0,0 +1,13 @@ +--- a/src/kcrash.cpp ++++ b/src/kcrash.cpp +@@ -762,10 +762,6 @@ static pid_t startDirectly(const char *argv[]) + fprintf(stderr, "KCrash failed to fork(), errno = %d\n", errno); + return 0; + case 0: +- setgroups(0, nullptr); // Remove any extraneous groups +- if (setgid(getgid()) < 0 || setuid(getuid()) < 0) { +- _exit(253); // This cannot happen. Theoretically. +- } + #ifndef Q_OS_OSX + closeAllFDs(); // We are in the child now. Close FDs unconditionally. + #endif