Page 1 of 1

kernel compilation error with grsec

PostPosted: Wed Sep 04, 2013 7:07 pm
by dunker
I am not a programmer. This error showed up while I was compiling a kernel, and it caused the procedure to fail:

CC grsecurity/grsec_sysctl.o
grsecurity/grsec_sysctl.c:465:15: error: 'one' undeclared here (not in a function)
make[1]: *** [grsecurity/grsec_sysctl.o] Error 1
make: *** [grsecurity] Error 2
make: *** Waiting for unfinished jobs....


Does anyone have some idea about how to fix this problem?

Re: kernel compilation error with grsec

PostPosted: Wed Sep 04, 2013 7:29 pm
by N8Fear
Change your config to CONFIG_GRKERNSEC_ROFS=y if you want the new usb-stuff. It should be fixed in the latest patch iirc...

Re: kernel compilation error with grsec

PostPosted: Wed Sep 04, 2013 7:46 pm
by dunker
Can you identify for me which item that is in menuconfig or else point me to where I can find an explanation? I don't recall making any specific changes from the defaults after setting my general requirements. The only thing I see that sound similar would be "runtime read-only mount protection. Is that the one you believe I should include in the kernel? Thanks.

Re: kernel compilation error with grsec

PostPosted: Thu Sep 05, 2013 5:15 am
by N8Fear
Yeah, that's it. A little advice for the future: in menuconfig type / <name of config option> as in /rofs and it'll tell you the name of the option and where to find it...