tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: npf 'bpf.jit' errors out?



On 10/04/2017 13:02, Hauke Fath wrote:
> Hi,
> 
> on netbsd-7, a minimal npf(4) & blacklistd(8) setup to ward off ssh 
> script kiddies complains about
> 
> set bpf.jit on; 
> 
> with
> 
> # /etc/rc.d/npf reload
> Reloading NPF ruleset.
> npfctl: error loading the bpfjit module; performance will be degraded: 
> Operation not permitted
> npfctl: To disable this warning `set bpf.jit off' in /etc/npf.conf
> #
> Okay, this is a minimal installation with a monolithic kernel. 
> bpfjit(4) suggests
> 
>      options BPFJIT
>      options SLJIT
> 
> (which isn't in any kernel config on either amd64 or i386 - why?), but 
> that doesn't seem to help:
> 
> # config -x /netbsd | grep JIT
> options         BPFJIT
> options         SLJIT
> # sysctl net.bpf
> net.bpf.maxbufsize = 1048576
> #
> 
> Anything else I am missing?

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/kern_module.c.diff?r1=1.117&r2=1.118&only_with_tag=MAIN&f=h

Unsure if it applies to -7, but basically you have probably set a secure
level so that modules cannot be loaded and npfctl see's no permission
rather than it already exists.

Roy



Home | Main Index | Thread Index | Old Index