KERN_GRSECURITY undeclared

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

KERN_GRSECURITY undeclared

Postby basit » Wed Aug 28, 2002 1:48 am

make[2]: Entering directory `/usr/src/usagi/kernel/linux24/kernel'
gcc -D__KERNEL__ -I/usr/src/usagi/kernel/linux24/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4 -nostdinc -I /usr/lib/gcc-lib/i386-linux/2.95.4/include -DKBUILD_BASENAME=sysctl -c -o sysctl.o sysctl.c
sysctl.c:266: `KERN_GRSECURITY' undeclared here (not in a function)
sysctl.c:266: initializer element is not constant
sysctl.c:266: (near initialization for `kern_table[29].ctl_name')
make[2]: *** [sysctl.o] Error 1
make[2]: Leaving directory `/usr/src/usagi/kernel/linux24/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/usagi/kernel/linux24/kernel'
make: *** [_dir_kernel] Error 2
basit
 
Posts: 3
Joined: Wed Aug 28, 2002 1:36 am

Postby spender » Wed Aug 28, 2002 12:38 pm

It's impossible for that to happen unless you tried to patch in something else into a grsecurity kernel and didn't re-merge (or incorrectly merged) the failed hunks.
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

KERN_GRSECURITY undeclared

Postby basit » Thu Aug 29, 2002 1:12 am

Well what i did was , i simply downloaded linux 2.4.19 kernel provided
by USAGI ipv6 project with their latest snap {19 Aug}.. and tried
to patch it .. it says some hunks failed. in compiling the kernel , it gives error what should i do in order to use both USAGI and GRSEC ?
basit
 
Posts: 3
Joined: Wed Aug 28, 2002 1:36 am

KERN_GRSECURITY

Postby basit » Thu Aug 29, 2002 3:43 am

well i basically declared that variable in sysctl.h , made its value 48
now its not complaining but at linking time , it gives
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
drivers/parport/driver.o drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/net/wireless/wireless_net.o drivers/pnp/pnp.o drivers/video/video.o drivers/md/mddev.o arch/i386/math-emu/math.o \
net/network.o \
crypto/crypto.o \
/usr/src/usagi/kernel/linux24/arch/i386/lib/lib.a /usr/src/usagi/kernel/linux24/lib/lib.a /usr/src/usagi/kernel/linux24/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
init/main.o: In function `init':
init/main.o(.text+0x40): undefined reference to `grsecurity_init'
init/main.o: In function `gr_setup':
init/main.o(.text.init+0x2c3): undefined reference to `gr_disable'
arch/i386/kernel/kernel.o: In function `do_vm86_irq_handling':
arch/i386/kernel/kernel.o(.text+0x4e70): undefined reference to `gr_is_capable'
arch/i386/kernel/kernel.o(.text+0x4ee7): undefined reference to `captab_log'
arch/i386/kernel/kernel.o: In function `gr_find_proc_file':
arch/i386/kernel/kernel.o(.text+0x519f): undefined reference to `gr_acl_is_enabled'
arch/i386/kernel/kernel.o: In function `sys_ptrace':
arch/i386/kernel/kernel.o(.text+0x52b1): undefined reference to `gr_pid_is_chrooted'
arch/i386/kernel/kernel.o(.text+0x5331): undefined reference to `gr_search_file'
arch/i386/kernel/kernel.o: In function `sys_ioperm':
basit
 
Posts: 3
Joined: Wed Aug 28, 2002 1:36 am


Return to grsecurity support