OpenBSD CVS

CVS log for src/usr.bin/usbhidaction/usbhidaction.c


[BACK] Up to [local] / src / usr.bin / usbhidaction

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_7_1


Revision 1.24 / (download) - annotate - [select for diffs], Wed Dec 15 11:23:09 2021 UTC (2 years, 5 months ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.23: +6 -1 lines
Diff to previous 1.23 (colored)

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@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.