Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
gpg2.25113
gnupg-gpg-agent-ulimit.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnupg-gpg-agent-ulimit.patch of Package gpg2.25113
gpg-agent is in the chain of commands in xinitrc. It receives a list of commands via argv[] which it is supposed to launch via exec. In this mode all what matters is a bunch of setenv() of gpg related variables. At no point it must fiddle with ulimit that was provided by its callers. In case of xinitrc it was most likely pam_limits which, for example, configured the coredump settings for this session. Every code path before the fork() call does no sensitive things, so coredumps do not matter. gpg-agent does fork a child in this mode. That child has the liberty to tweak ulimit in every way it wants. This is what this patch does. Without this patch, all applications launched after gpg-agent are unable to coredump, because systemd-coredump check the ulimit of the crashed process. As a result, crashes of desktop applications can not be debugged. References: bsc#1124847 Index: gnupg-2.0.24/agent/gpg-agent.c =================================================================== --- gnupg-2.0.24.orig/agent/gpg-agent.c +++ gnupg-2.0.24/agent/gpg-agent.c @@ -662,7 +662,6 @@ main (int argc, char **argv ) setup_libgcrypt_logging (); gcry_control (GCRYCTL_USE_SECURE_RNDPOOL); - disable_core_dumps (); /* Set default options. */ parse_rereadable_options (NULL, 0); /* Reset them to default values. */ @@ -1272,6 +1271,7 @@ main (int argc, char **argv ) /* This is the child */ + disable_core_dumps (); /* Detach from tty and put process into a new session */ if (!nodetach )
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor