SDL/src/tray
Simon McVittie ef1fdf11bd tray: Create tray icons for libappindicator securely
If we write directly to filenames in /tmp, we're subject to
time-of-check/time-of-use symlink attacks on most systems (although
recent Linux kernels mitigate these by default). We can avoid these
attacks by securely creating a directory owned by our own uid,
and doing all our file I/O in that directory. Other uids cannot create
symbolic links in that directory, so we are protected from symlink
attacks.

This does not protect us from an attacker that is running with the same
uid, but if such an attacker exists, then we have already lost.

Resolves: https://github.com/libsdl-org/SDL/issues/11887
Signed-off-by: Simon McVittie <smcv@collabora.com>
2025-01-08 07:26:02 -08:00
..
cocoa Fixed error: returning 'SDL_TrayEntry **' from a function with incompatible return type 'const SDL_TrayEntry **' 2025-01-06 11:35:54 -08:00
dummy Updated copyright for 2025 2025-01-01 07:45:52 -08:00
unix tray: Create tray icons for libappindicator securely 2025-01-08 07:26:02 -08:00
windows tray, windows: fix logic error from commit 1167cf54e1 2025-01-07 10:15:40 +03:00
SDL_tray_utils.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_tray_utils.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00