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: Closed FIXED
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-12-03 19:53 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 freebsd_triage 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?
Comment 3 commit-hook freebsd_committer freebsd_triage 2019-12-03 05:16:51 UTC
A commit references this bug:

Author: jbeich
Date: Tue Dec  3 05:16:46 UTC 2019
New revision: 518909
URL: https://svnweb.freebsd.org/changeset/ports/518909

Log:
  sysutils/uhidd: improve FreeBSD 12+ support

  - Backport -U (forced_attach)
  - Mention devmatch_blacklist and UQ_*_IGNORE in pkg-message

  PR:		234916
  MFH:		2019Q4

Changes:
  head/sysutils/uhidd/Makefile
  head/sysutils/uhidd/distinfo
  head/sysutils/uhidd/pkg-message
Comment 4 commit-hook freebsd_committer freebsd_triage 2019-12-03 19:53:56 UTC
A commit references this bug:

Author: jbeich
Date: Tue Dec  3 19:53:05 UTC 2019
New revision: 518960
URL: https://svnweb.freebsd.org/changeset/ports/518960

Log:
  MFH: r518909

  sysutils/uhidd: improve FreeBSD 12+ support

  - Backport -U (forced_attach)
  - Mention devmatch_blacklist and UQ_*_IGNORE in pkg-message

  PR:		234916
  Approved by:	ports-secteam (joneum)

Changes:
_U  branches/2019Q4/
  branches/2019Q4/sysutils/uhidd/Makefile
  branches/2019Q4/sysutils/uhidd/distinfo
  branches/2019Q4/sysutils/uhidd/pkg-message