antoineco / broadcom-wl

Broadcom Linux hybrid wireless driver (64-bit)
https://www.broadcom.com/support/download-search?pg=Wireless+Embedded+Solutions+and+RF+Components&pf=Legacy+Wireless&pa=Driver&dk=BCM4312&l=true
163 stars 47 forks source link

modprobe: ERROR: could not insert 'wl': Key was rejected by service #22

Closed rvernica closed 2 years ago

rvernica commented 3 years ago

Here is what I did:

> rmmod bcma # and add to /etc/modprobe.d/blacklist.conf
# none of the other conflicting modules were loaded
> git clone https://github.com/antoineco/broadcom-wl.git
> git checkout  patch-linux4.7
> dkms add /usr/src/broadcom-wl-6.30.223.271
> dkms status
broadcom-wl, 6.30.223.271: added
> dkms build -m broadcom-wl -v 6.30.223.271

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.14.12-200.fc34.x86_64 KBASE=/lib/modules/5.14.12-200.fc34.x86_64.....
cleaning build area...
> reboot
> lsmod | grep wl
# no output
> lspci -k
04:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01)
    Subsystem: Hewlett-Packard Company Device 804a
    Kernel modules: bcma, wl
> rmmod bcma
rmmod: ERROR: Module bcma is not currently loaded
> modprobe wl
modprobe: ERROR: could not insert 'wl': Key was rejected by service
> dkms install broadcom-wl/6.30.223.271
Module broadcom-wl/6.30.223.271 already installed on kernel 5.14.12-200.fc34.x86_64 (x86_64).
> nmcli device
# wifi no listed

More info:

> cat /etc/redhat-release 
Fedora release 34 (Thirty Four)
> uname -a
Linux 5.14.12-200.fc34.x86_64 #1 SMP Wed Oct 13 14:16:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
antoineco commented 3 years ago

Hey @rvernica 👋 Thanks for the report.

People in the following discussion claim that Fedora enforces that modules are signed before they can be loaded: https://github.com/umlaeute/v4l2loopback/issues/394. A solution was proposed, but maybe it is also possible to disable this security mechanism if it's getting in your way (I'm not sure).

antoineco commented 2 years ago

Closing due to inactivity. Also, the issue is related to the operating system's security, and not that particular module.