SDL/src
Simon McVittie b0eba1c55d joystick: Use inotify to detect joystick unplug if not using udev
This improves SDL's ability to detect joystick hotplug in a container
environment.

We cannot reliably receive events from udev in a container, because they
are delivered as netlink events, which are authenticated by their uid
being 0. However, in a user namespace created by an unprivileged user
(for example bubblewrap, as used by Flatpak and Steam's
pressure-vessel-wrap), the kernel does not allow us to map uid 0, and
the netlink events appear to be from the kernel's overflowuid (typically
65534/nobody), meaning libudev cannot distinguish between genuine uevents
from udevd and an attack by a malicious local user.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2020-11-11 19:15:32 -08:00
..
atomic Add basic support for compiling on RISC OS 2020-02-13 20:50:47 +00:00
audio SIZE_MAX need not be defined in limits.h 2020-11-11 12:33:55 +03:00
core evdev: Detect whether input devices are accelerometers 2020-11-11 19:15:09 -08:00
cpuinfo Add Zhaoxin processor support 2020-11-09 20:36:35 -08:00
dynapi Added SDL_JoystickRumbleTriggers() and SDL_GameControllerRumbleTriggers() 2020-11-11 18:57:37 -08:00
events os2: integrate the port into main tree. 2020-10-14 23:01:06 +03:00
file Fixed compile warning 2020-02-10 13:59:05 -08:00
filesystem os2: a _lot_ of coding style cleanup, sot that they match the SDL style. 2020-10-15 21:37:30 +03:00
haptic udev: Factor out SDL_EVDEV_GuessDeviceClass 2020-11-11 19:14:34 -08:00
hidapi Added support for the Xbox Series X controller to the HIDAPI driver 2020-11-10 12:26:30 -08:00
joystick joystick: Use inotify to detect joystick unplug if not using udev 2020-11-11 19:15:32 -08:00
libm k_rem_pio2.c: fix typo in second memset(): iq, not q. fixes bug #5309. 2020-10-08 11:51:02 +03:00
loadso os2: a _lot_ of coding style cleanup, sot that they match the SDL style. 2020-10-15 21:37:30 +03:00
locale windows/SDL_syslocale.c: make it build against older SDKs. 2020-10-06 00:20:20 +03:00
main uikit: Fixed a typo in a comment. 2020-11-10 13:09:59 -05:00
misc riscos: Implement SDL_OpenURL() 2020-10-11 17:32:32 +01:00
power Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
render opengl: Make diagonal lines match the software renderer. 2020-11-08 20:57:17 -05:00
sensor make SDL_SensorGetDeviceNonPortableType match its prototype. 2020-11-11 12:33:55 +03:00
stdlib stdlib: Corrected implementation of SDL_wcsncmp. 2020-07-24 22:24:03 -04:00
test fix watcom build of SDL_test_common.c 2020-06-14 12:05:56 +03:00
thread Fix process randomly getting killed when SDL_THREAD_PRIORITY_HIGH/TIME_CRITICAL is set 2020-11-11 08:47:18 -08:00
timer os2: a _lot_ of coding style cleanup, sot that they match the SDL style. 2020-10-15 21:37:30 +03:00
video windows: Fix numpad arrow key scancodes with numlock off 2020-08-27 17:54:52 -07:00
SDL.c os2: integrate the port into main tree. 2020-10-14 23:01:06 +03:00
SDL_assert.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_assert_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dataqueue.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_dataqueue.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_error.c SDL_error: simplified error string management. 2020-04-21 01:30:36 -04:00
SDL_error_c.h SDL_error: simplified error string management. 2020-04-21 01:30:36 -04:00
SDL_hints.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_hints_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_internal.h Added SDL_log.h to SDL_internal.h so logging is available everywhere 2020-04-07 09:38:57 -07:00
SDL_log.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00