mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Merge remote-tracking branch 'public/bug14759'
This commit is contained in:
commit
99e915dbfe
6
changes/bug14759
Normal file
6
changes/bug14759
Normal file
@ -0,0 +1,6 @@
|
||||
o Minor bugfixes (sandbox):
|
||||
- Allow Glibc fatal errors to be sent to stderr before Tor exits.
|
||||
Previously, glibc would try to write them to /dev/tty, and the sandbox
|
||||
would trap the call and make Tor exit prematurely. Fixes bug 14759;
|
||||
bugfix on 0.2.5.1-alpha.
|
||||
|
@ -1676,6 +1676,9 @@ register_cfg(sandbox_cfg_t* cfg)
|
||||
static int
|
||||
initialise_libseccomp_sandbox(sandbox_cfg_t* cfg)
|
||||
{
|
||||
/* Prevent glibc from trying to open /dev/tty on fatal error */
|
||||
setenv("LIBC_FATAL_STDERR_", "1", 1);
|
||||
|
||||
if (install_sigsys_debugging())
|
||||
return -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user