hosted: open input device as read-only.

Change-Id: I4dcd98f45f41fe06a0a75a2a0dd45c753c2cf365
This commit is contained in:
Solomon Peachy 2020-10-16 14:11:51 -04:00
parent 1a76bc403e
commit c6d2a0358f
5 changed files with 14 additions and 15 deletions

View file

@ -156,7 +156,7 @@ static void key_init_state(int fd)
static void open_input_device(const char *path)
{
int fd = open(path, O_RDWR);
int fd = open(path, O_RDONLY | O_CLOEXEC);
if(fd < 0)
return;
/* query name */