summaryrefslogtreecommitdiff
path: root/libevdev/libevdev-uinput-int.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-12-22 09:02:46 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-01-04 07:39:24 +1000
commit006f10cfcb9c402df0f2a30edef85199c4468b32 (patch)
treee1fad7fc30b2beb68a617798791920f4662e09d0 /libevdev/libevdev-uinput-int.h
parent3c85fcb62fc8a5b64d1940585e313d68e98f12ae (diff)
downloadlibevdev-006f10cfcb9c402df0f2a30edef85199c4468b32.tar.gz
uinput: fix race condition in uinput syspath check
In theory, the device could change between stat() call and open(), resulting in us opening the new device. Change to open() first, then fstat() on the fd. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'libevdev/libevdev-uinput-int.h')
0 files changed, 0 insertions, 0 deletions