Tobias Stoeckmann
7d82f203ee
Reset pid_child only if waitpid was successful.
...
Do not reset the pid_child to 0 if the child process is still
running. This else-condition can be reached with pid being -1,
therefore explicitly test this condition.
This is a regression fix for CVE-2017-2616. If su receives a
signal like SIGTERM, it is not propagated to the child.
Reported-by: Radu Duta <raduduta@gmail.com>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2017-05-14 17:58:10 +02:00
..
2013-08-11 14:48:39 +02:00
2015-02-27 17:01:29 +00:00
2015-02-27 17:01:29 +00:00
2015-02-27 17:01:29 +00:00
2017-04-10 22:29:21 +01:00
2015-02-27 17:01:29 +00:00
2016-07-02 18:11:09 +02:00
2011-11-19 21:44:34 +00:00
2016-07-02 18:11:09 +02:00
2015-02-27 17:01:29 +00:00
2015-11-12 23:07:29 -06:00
2015-02-27 17:01:29 +00:00
2015-02-27 17:01:29 +00:00
2010-08-22 19:36:09 +00:00
2015-02-27 17:01:29 +00:00
2015-02-27 17:01:29 +00:00
2015-02-27 17:01:29 +00:00
2010-03-23 11:26:34 +00:00
2016-03-03 15:37:01 +01:00
2010-03-23 11:26:34 +00:00
2016-07-02 18:11:09 +02:00
2010-08-22 19:36:09 +00:00
2016-12-13 18:44:19 +02:00
2016-07-02 16:39:18 +02:00
2015-08-06 00:25:01 -05:00
2016-07-02 16:39:18 +02:00
2017-04-10 22:29:21 +01:00
2009-05-09 13:14:23 +00:00
2017-04-10 22:29:21 +01:00
2015-02-27 17:01:29 +00:00
2015-02-27 17:01:29 +00:00
2015-02-27 17:01:29 +00:00
2017-05-14 17:58:10 +02:00
2011-06-13 18:26:26 +00:00
2016-07-02 18:11:09 +02:00
2017-04-10 22:29:21 +01:00
2015-02-27 17:01:29 +00:00
2017-04-10 22:29:21 +01:00
2013-08-25 16:27:58 +02:00