Andreas Kling
998765a7a6
LibC: The exec() family of functions should not search "." by default
...
We should only execute the filename verbatim if it contains a slash (/)
character somewhere. Otherwise, we need to look through the entries in
the PATH environment variable.
This fixes an issue where you could easily "override" system programs
by placing them in a directory you control, and then waiting for
someone to come there and run e.g "ls" :^)
Test: LibC/exec-should-not-search-current-directory.cpp
2020-02-01 16:14:09 +01:00
..
2020-01-18 09:45:54 +01:00
2020-01-20 13:13:03 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-27 20:47:56 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-21 13:34:39 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2019-09-17 21:56:42 +02:00
2020-01-18 09:45:54 +01:00
2020-01-23 14:33:58 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-24 15:15:16 +01:00
2020-01-24 15:15:16 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-13 13:03:30 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-26 12:23:37 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-23 14:33:58 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2019-09-29 21:02:13 +02:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 11:41:04 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-27 10:59:29 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-02-01 16:14:09 +01:00
2020-01-20 22:12:04 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00
2020-01-18 09:45:54 +01:00