Bug 234916 - sysutils/uhidd How to prevent kernel modules from being loaded since FreeBSD 12
Summary: sysutils/uhidd How to prevent kernel modules from being loaded since FreeBSD 12
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-13 10:30 UTC by Stefan Rumetshofer
Modified: 2019-04-05 03:52 UTC (History)
1 user (show)

See Also:
jbeich: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Rumetshofer 2019-01-13 10:30:24 UTC
Since FreeBSD 12 the way to prevent kernel modules from being loaded has changed because no /etc/devd/usb.conf exists.
How to handle this in 12?.
Also the man page, the distifo and the wiki page should be updated to show a solution or at least they should say it's broken on 12.
Comment 1 Jan Beich freebsd_committer 2019-01-13 12:17:48 UTC
/etc/devd/usb.conf was removed in base r329148, so drivers are now excluded via devmatch_blacklist in /etc/rc.conf. Only specific device can also be excluded using UQ_KBD_IGNORE/UQ_HID_IGNORE/UQ_UMS_IGNORE via usb_quirk(4).

Alternatively, upstream added -U (forced_attach) which works fine together with -o (cc_attach) as uhid(4) doesn't trigger events for kbdmux/sysmouse by default.
https://github.com/kaiwang27/uhidd/commit/e9e835c93f53
https://github.com/kaiwang27/uhidd/commit/2ed68916f23b
Comment 2 Stefan Rumetshofer 2019-01-13 12:46:06 UTC
Thanks for your explanation.
Could someone place a short manual in UPDATING or the wiki or so?