mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-10 03:40:52 +00:00
fix(x11/kf6-kcrash): add remove-setgroups-and-setuid.patch
Co-authored-by: Robert Kirkman <rkirkman@termux.dev>
This commit is contained in:
@@ -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"
|
||||
|
||||
13
x11-packages/kf6-kcrash/remove-setgroups-and-setuid.patch
Normal file
13
x11-packages/kf6-kcrash/remove-setgroups-and-setuid.patch
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user