HardenedBSD / secadm

HardenedBSD Security Administration
http://hardenedbsd.org/
29 stars 7 forks source link

secadm kernel module fails to register at loading (HBSD-11 STABLE) #33

Closed angelescuo closed 7 years ago

angelescuo commented 8 years ago

I have installed last hbsd-11 in vbox. After installing secadm from packages I have added a valid rule and tryed to start secadm. Loading of secadm failed because secadm-kmod failed to register ( was built for another kernel) Cloned secadm frrom github, compiled and installed. secadm started succesfully after loaded built secadm-kmod.

lattera commented 8 years ago

The kernel version was bumped. I'm doing a new package build now. T-Minus 40 hours till the package repo is published.

mekanix commented 7 years ago

I have this same issue with this install:

root@marvin:~ # uname -a
FreeBSD marvin.lab.tilda.center 11.0-STABLE-HBSD FreeBSD 11.0-STABLE-HBSD #0 : Fri Mar 10 19:49:06 UTC 2017     root@updater-01:/usr/obj/usr/src/sys/HARDENEDBSD  amd64

Compiling from ports doesn't help.

lattera commented 7 years ago

What does dmesg tell you when you try to run kldload secadm?

mekanix commented 7 years ago
[343] KLD secadm.ko: depends on kernel - not available or version mismatch
[343] linker_load_file: Unsupported file type
lattera commented 7 years ago

When you built from ports, did your /usr/src match your installed kernel?

mekanix commented 7 years ago
/usr/src % git branch
* hardened/11-stable/master

Is that appropriate?

lattera commented 7 years ago

git fetch; git status

mekanix commented 7 years ago

I did a --deph=1 clone, so that's going to take a while. Is it possible that shallow git clone is the cause?

lattera commented 7 years ago

Chances are that what's in /usr/src is newer than your installed kernel. You probably need to build/install world and kernel first.

mekanix commented 7 years ago

OK, I'll write here once everything is installed how it went

mekanix commented 7 years ago

It works after recompiling everything. Thank you!