Subject: sparc vs INSECURE
To: netbsd-users@netbsd.org <netbsd-users@netbsd.org>
From: Jorgen Lundman <lundman@lundman.net>
List: netbsd-users
Date: 10/31/2001 22:30:57
Apologies if it's just me being tired, or if this has already been
mentioned.

In the process of trying out my lkm on my SS5/sparc, but found I can't
modload it as securelevel is 1. I then go to recompile the kernel to
have "options INSECURE" on, like:

grep INSECURE lundsun 
## `INSECURE' turns off the kernel security level (securelevel = 0
always).
options         INSECURE 


config lundsun
cd ../../compile/lundsun
make depend
make

and the make file comes up as:

cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wpointer-arith -Wno-uninitialized -Wno-main -I. -I../../../../arch
-I../../../.. -nostdinc -DSUN4 -DSUN4C -DSUN4M -DSUN4_MMU3L
-DRASTERCONSOLE -DLKM -DMAXUSERS=32 -D_KERNEL  -c
../../../../kern/kern_sysctl.c 

kern_sysctl.c has the #ifdef INSECURE. 

When I boot the kernel:
NetBSD sun 1.5 NetBSD 1.5 (lundsun) #0: Wed Oct 31 21:01:22 GMT 2001    
lundman

sysctl kern.securelevel is set to 1. I've grepped through the rc.d stuff
and, to make that's not it, change the one line that sets it to 1 to not
to. But even if INSECURE was compiled in, that change shouldn't matter.


Is there something up with the build environment?

Lund


-- 
Jorgen "Lord" Lundman <lundman@lundman.net>
Technology Manager, Unix Administrator
Phone: +44 (0)20-86591860  Mobile: +44 (0)79-58642918
Pager: 07958642918@one2one.net
"Rare is the person who can weigh the faults of others 
 without putting his thumb on the scales": Byron J. Langenfeld