erreur when compiling kernel

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

erreur when compiling kernel

Postby slickers9090 » Fri Jul 25, 2014 6:48 pm

hi,
i'm running under debian 7.5 wheezy.
i'm trying to compile kernel. this is the last one for debian wheezy : Debian 3.2.60-1+deb7u1.
Here is actions i did :
- i got the source of the linux kernel
- i extracted it
- i downloaded the grsec patch grsecurity-3.0-3.2.61-201407232156.patch
- i integrated grsec patch into linux sources i've downloaded

then i compiled the sources. And i got this error :

CC fs/proc/inode.o
fs/proc/inode.c: In function ‘proc_evict_inode’:
fs/proc/inode.c:57:22: error: ‘proc_sys_inode_operations’ undeclared (first use in this function)
fs/proc/inode.c:57:22: note: each undeclared identifier is reported only once for each function it appears in
fs/proc/inode.c:58:22: error: ‘proc_sys_dir_operations’ undeclared (first use in this function)
fs/proc/inode.c:59:3: error: implicit declaration of function ‘gr_handle_delete’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[3]: *** [fs/proc/inode.o] Erreur 1
make[2]: *** [fs/proc] Erreur 2
make[1]: *** [fs] Erreur 2
make[1]: quittant le répertoire « /home/steve/src/linux-source-3.2 »
make: *** [debian/stamp/build/kernel] Erreur 2


=> any idea ?

thank your very much.
slickers9090
 
Posts: 2
Joined: Fri Jul 25, 2014 6:45 pm

Re: erreur when compiling kernel

Postby spender » Fri Jul 25, 2014 6:56 pm

grsecurity needs to be applied against a vanilla kernel of the same version mentioned in the patch only. It seems some hunks failed against the kernel you tried applying against, hence the compilation failure.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: erreur when compiling kernel

Postby slickers9090 » Mon Jul 28, 2014 11:32 am

that's correct...
sorry for this stupid question, it works very well with a vanilla kernel :)
slickers9090
 
Posts: 2
Joined: Fri Jul 25, 2014 6:45 pm


Return to grsecurity support