Home
last modified time | relevance | path

Searched hist:"03319 b45" (Results 1 – 1 of 1) sorted by relevance

/openbsd/usr.bin/usbhidaction/
H A Dusbhidaction.cdiff 03319b45 Wed Dec 15 11:23:09 GMT 2021 mestre <mestre@openbsd.org> restrict filesystem access with unveil(2).

this one opens the default table file "/usr/share/misc/usb_hid_usages" through
hid_start(3) from libusbhid, then `dev' (will be the fd used on the ioctls)
and finally `conf' which is the file with the actions to be monitored. `conf'
needs to be unveil(2)ed with read perms since usbhidaction(1) can run as daemon
and this file will be re-read if a SIGHUP is catched.

looks good deraadt@