Adhemerval Zanella
db8cbc6a7a
posix: Use posix_spawn for wordexp
...
This patch replaces the fork+exec by posix_spawn on wordexp, which
allows a better scability on Linux and simplifies the thread
cancellation handling.
The only change which can not be implemented with posix_spawn the
/dev/null check to certify it is indeed the expected device. I am
not sure how effetive this check is since /dev/null tampering means
something very wrong with the system and this is the least of the
issues. My view is the tests is really out of the place and the
hardening provided is minimum.
If the idea is still to provide such check, I think a possibilty
would be to open /dev/null, check it, add a dup2 file action, and
close the file descriptor.
Checked on powerpc64le-linux-gnu and x86_64-linux-gnu.
* include/spawn.h (__posix_spawn_file_actions_addopen): New
prototype.
* posix/spawn_faction_addopen.c (posix_spawn_file_actions_addopen):
Add internal alias.
* posix/wordexp.c (create_environment, free_environment): New
functions.
(exec_comm_child, exec_comm): Use posix_spawn instead of fork+exec.
* posix/wordexp-test.c: Use libsupport.
2019-10-09 17:48:41 -03:00
..
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2018-07-18 21:04:12 +00:00
2018-07-18 21:04:12 +00:00
2018-07-18 21:04:12 +00:00
2018-07-18 21:04:12 +00:00
2018-07-18 21:04:12 +00:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2018-02-27 16:58:44 +01:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2014-11-25 21:40:51 +00:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-10-08 16:11:13 +02:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2018-07-04 09:54:45 -03:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2014-12-29 19:56:27 +05:30
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-02-22 01:32:36 +00:00
2019-08-21 11:02:19 -07:00
2019-01-01 00:11:28 +00:00
2019-01-01 00:11:28 +00:00
2019-01-01 00:11:28 +00:00
2014-12-11 13:08:26 -08:00
2019-02-22 01:32:36 +00:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-10-09 17:48:41 -03:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2017-02-16 17:33:18 -05:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2017-04-07 07:51:52 -04:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2014-11-05 15:24:08 +05:30
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2018-10-17 09:34:13 +02:00
2019-09-07 02:43:31 -07:00
2019-08-29 02:38:14 -07:00
2019-09-07 02:43:31 -07:00
2018-03-03 17:44:24 +01:00
2018-03-03 17:44:24 +01:00
2018-03-03 17:44:24 +01:00
2014-02-14 13:45:14 +00:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-10-08 18:55:48 +02:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-03-14 15:44:15 +01:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-09-07 02:43:31 -07:00
2019-10-09 17:48:41 -03:00
2019-09-07 02:43:31 -07:00
2019-10-09 17:48:41 -03:00
2019-09-07 02:43:31 -07:00