Files
moonlight-qt/app
Chris 8f2e52e540 Refuse to open a pre-existing log file (#2068)
On macOS, release builds log to /tmp/Moonlight-<epoch>.log. /tmp is
shared by all users and the file name is predictable, so another local
user could plant symlinks at upcoming log names and have Moonlight
truncate and overwrite any file the victim can write to. The log was
also created world-readable.

Open the log with QIODevice::NewOnly (O_CREAT|O_EXCL) so an existing
file or symlink is never opened, and create it readable only by the
owner on Qt 6.3+. If the open fails we keep logging to stderr, as we
already did for any other open failure.
2026-10-24 18:19:58 -05:00
..
2026-05-23 19:28:28 -05:00
2026-10-03 16:32:35 -05:00
2026-06-28 17:00:34 -05:00
2025-12-29 01:45:49 -06:00
2018-12-26 13:29:49 +01:00
2018-12-26 13:29:49 +01:00
2022-08-25 22:18:05 -05:00
2025-01-25 16:20:20 -06:00
2026-10-03 16:32:35 -05:00