SDL/src
Simon McVittie b6f4e10bf9 unix: If setuid or setgid, don't use GTK
GTK explicitly doesn't support being used setuid or setgid, and if SDL
loads and initializes GTK, GTK will exit the process if it
detects a setgid executable. This is incompatible with the historical
practice of making game executables setgid in order to write out a
shared high-score table on multi-user systems (which is security theatre
at best, because typical game runtime libraries are not hardened against
an untrusted caller, but making it regress would be a user-observable
regression in sdl2-compat).

Helps: https://github.com/libsdl-org/sdl2-compat/issues/564
Signed-off-by: Simon McVittie <smcv@debian.org>
2025-12-28 10:19:33 -08:00
..
atomic Add support for tcc to cmake (#14464) 2025-11-15 11:24:15 -08:00
audio dlnote: embed trailing semicolon in SDL_ELF_NOTE_DLOPEN macro 2025-12-24 23:45:50 +03:00
camera dlnote: embed trailing semicolon in SDL_ELF_NOTE_DLOPEN macro 2025-12-24 23:45:50 +03:00
core unix: If setuid or setgid, don't use GTK 2025-12-28 10:19:33 -08:00
cpuinfo Android: remove old cpu-feature code, and fix build (add HAVE_GETAUXV… (#14460) 2025-11-13 09:12:07 -08:00
dialog Don't do NULL-checks before free() 2025-10-20 00:13:09 -07:00
dynapi emscripten: Move fill-document from hint/property to a window flag. 2025-12-07 21:12:13 -05:00
events video: Handle window destruction in event handlers 2025-12-09 14:10:43 -05:00
filesystem Fix SDL_EnumerateDirectory(/) failing on POSIX and Windows. 2025-12-15 17:01:02 -08:00
gpu GPU: Add bounds validation for slot bindings and uniform data pushes. (#14692) 2025-12-23 08:36:06 -08:00
haptic Use new parameter validation macro 2025-09-18 20:58:32 -07:00
hidapi dlnote: embed trailing semicolon in SDL_ELF_NOTE_DLOPEN macro 2025-12-24 23:45:50 +03:00
io dlnote: embed trailing semicolon in SDL_ELF_NOTE_DLOPEN macro 2025-12-24 23:45:50 +03:00
joystick Fix Emscripten joysticks having the same name 2025-12-24 07:19:10 -08:00
libm remove watcom compiler support from private sources 2025-09-20 03:47:02 +03:00
loadso Use new parameter validation macro 2025-09-18 20:58:32 -07:00
locale Fix support for Windows XP and up (#13904) 2025-09-08 13:00:26 -07:00
main Set SDL_MAIN_AVAILABLE for all platforms 2025-11-30 12:15:48 -08:00
misc dlnote: embed trailing semicolon in SDL_ELF_NOTE_DLOPEN macro 2025-12-24 23:45:50 +03:00
power Use the aggregate upower device for power status when available 2025-12-19 17:42:33 -08:00
process Use posix_spawn_file_actions_addchdir_np() on macOS 2025-09-19 08:00:03 -07:00
render Add SDL_PROP_TEXTURE_CREATE_VULKAN_LAYOUT_NUMBER 2025-12-27 10:23:12 -08:00
sensor Fix check_stdlib_usage.py libc call matching 2025-11-25 01:07:10 +01:00
stdlib Don't create the SDL environment in SDL_setenv_unsafe() 2025-12-13 21:28:05 -08:00
storage dlnote: embed trailing semicolon in SDL_ELF_NOTE_DLOPEN macro 2025-12-24 23:45:50 +03:00
test SDL_test: allow disabling colorized output 2025-12-15 23:19:25 +01:00
thread fixed several -Wzero-as-null-pointer-constant warnings from gcc-15 2025-11-17 17:55:10 +03:00
time N-Gage: Add SDL_TimeToDateTime() implementation (#14141) 2025-10-04 20:00:27 +03:00
timer Use new parameter validation macro 2025-09-18 20:58:32 -07:00
tray tray: plug leak of cache dir path 2025-11-17 20:00:02 +01:00
video wayland: Remove redundant mouse button releases 2025-12-28 12:42:09 -05:00
SDL.c Clarify which thread is the main thread 2025-11-30 12:15:48 -08:00
SDL_assert.c remove watcom compiler support from private sources 2025-09-20 03:47:02 +03:00
SDL_assert_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_error.c Restore support for the Nokia N-Gage (#12148) 2025-05-22 11:07:22 -07:00
SDL_error_c.h Save and restore error messages when rolling back after failed init 2025-03-02 07:55:56 -08:00
SDL_guid.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_hashtable.c Use new parameter validation macro 2025-09-18 20:58:32 -07:00
SDL_hashtable.h hashtable: Fix documentation typos 2025-07-09 12:38:16 -04:00
SDL_hints.c Use new parameter validation macro 2025-09-18 20:58:32 -07:00
SDL_hints_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_internal.h Clarify which thread is the main thread 2025-11-30 12:15:48 -08:00
SDL_list.c Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_list.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_log.c log: Fix unlikely out-of-bounds issue. 2025-12-04 13:19:53 -08:00
SDL_log_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_properties.c Use new parameter validation macro 2025-09-18 20:58:32 -07:00
SDL_properties_c.h Updated copyright for 2025 2025-01-01 07:45:52 -08:00
SDL_utils.c Log object leaks at debug level 2025-10-25 15:13:37 -07:00
SDL_utils_c.h Make SDL_ObjectValid() inline for performance (thanks @mechakotik!) 2025-09-18 20:58:32 -07:00