Dmitry V. Levin 559ec3e06d Fix leakage of placeholder descriptors to tracees
As a side effect of commit v4.11-211-g0736d4e, strace used to leak
placeholders for standard descriptors to tracees thus affecting their
behaviour.  Fix this by setting close-on-exec flag on placeholder
descriptors.

* strace.c (open_dummy_desc): Set close-on-exec flag on the descriptor
that is going to be returned to the caller.
(fd_is_placeholder): New array.
(ensure_standard_fds_opened, redirect_standard_fds): New functions.
(startup_child): Use redirect_standard_fds.
(init): Use ensure_standard_fds_opened.
2016-08-13 22:04:59 +00:00
2016-07-27 09:19:37 +00:00
2016-07-12 16:22:22 +00:00
2016-08-12 00:07:54 +00:00
2016-06-18 22:53:25 +00:00
2015-07-20 22:03:07 +00:00
2016-07-12 16:22:22 +00:00
2009-07-08 21:01:21 +00:00
2015-07-20 22:03:07 +00:00
2013-05-17 23:18:55 +00:00
2015-11-25 19:10:56 +00:00
2016-01-08 18:53:27 +00:00
2015-08-28 08:46:23 +00:00
2016-07-18 22:12:45 +00:00
2015-07-20 22:03:07 +00:00
2015-07-20 22:03:07 +00:00
2016-05-30 00:29:14 +00:00
2012-02-25 15:29:21 +01:00
2016-07-13 23:45:20 +00:00
2015-11-22 23:10:12 +00:00
2015-11-22 23:10:12 +00:00
2016-07-22 19:28:06 +00:00
2016-05-29 22:58:56 +00:00
2016-06-17 16:12:13 +00:00
2016-07-18 22:12:45 +00:00
2015-09-16 00:14:55 +00:00
2016-07-18 22:12:45 +00:00
2016-05-25 16:36:37 +00:00
2016-06-21 16:56:21 +00:00
2016-07-27 09:19:37 +00:00
2016-04-07 01:15:58 +00:00
2016-06-18 22:53:25 +00:00
2016-06-18 22:53:25 +00:00
2016-05-07 23:37:53 +00:00
2015-12-07 00:38:38 +00:00
2016-07-26 16:14:50 +00:00
2016-05-10 10:54:54 +00:00
2015-08-28 08:46:23 +00:00
2016-07-18 22:12:45 +00:00

This is strace -- a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.

strace is released under a Berkeley-style license at the request of Paul Kranenburg; see the file COPYING for details.

See the file NEWS for information on what has changed in recent versions.

Please send bug reports and enhancements to the strace mailing list.

Build Status Code Coverage

Description
No description provided
Readme 17 MiB
Languages
C 92.2%
Shell 3.4%
M4 1.4%
Makefile 0.8%
Roff 0.7%
Other 1.5%