diff options
| author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-12-22 09:02:46 +1000 |
|---|---|---|
| committer | Peter Hutterer <peter.hutterer@who-t.net> | 2016-01-04 07:39:24 +1000 |
| commit | 006f10cfcb9c402df0f2a30edef85199c4468b32 (patch) | |
| tree | e1fad7fc30b2beb68a617798791920f4662e09d0 /libevdev/libevdev-uinput-int.h | |
| parent | 3c85fcb62fc8a5b64d1940585e313d68e98f12ae (diff) | |
| download | libevdev-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
