When I compile the linux-2.6.7-hardened-r7 kernel using 'make bzImage' after configuring it per the selinux x86 install guide it fails with the following errors: make[1]: `arch/i386/kernel/asm-offsets.s' is up to date. CHK include/linux/compile.h CC fs/exec.o fs/exec.c: In function `pax_report_fault': fs/exec.c:1580: error: structure has no member named `curr_ip' fs/exec.c:1582: error: structure has no member named `curr_ip' fs/exec.c:1582: error: structure has no member named `curr_ip' fs/exec.c:1582: error: structure has no member named `curr_ip' fs/exec.c:1582: error: structure has no member named `curr_ip' fs/exec.c:1582: error: structure has no member named `role' fs/exec.c:1583: error: structure has no member named `acl' fs/exec.c:1585: error: structure has no member named `curr_ip' fs/exec.c:1587: error: structure has no member named `curr_ip' fs/exec.c:1587: error: structure has no member named `curr_ip' fs/exec.c:1587: error: structure has no member named `curr_ip' fs/exec.c:1587: error: structure has no member named `curr_ip' fs/exec.c:1591: error: structure has no member named `role' fs/exec.c:1592: error: structure has no member named `acl' make[1]: *** [fs/exec.o] Error 1 make: *** [fs] Error 2 Reproducible: Always Steps to Reproduce: 1. Copy config.log (attached) into the kernel source directory as .config 2. Run make oldconfig 3. Run make or make bzImage Actual Results: Error that was reported above Expected Results: Compiled. Portage 2.0.50-r9 (x86, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.26-hardened-r2) ================================================================= System uname: 2.4.26-hardened-r2 i686 Pentium II (Deschutes) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium2 -fomit-frame-pointer -fforce-addr" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium2 -fomit-frame-pointer -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache fixpackages loadpolicy sandbox sfperms strict userpriv" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="berkdb crypt gdbm libwww ncurses nls pam perl png python readline selinux ssl tcpd x86 zlib"
Created attachment 37359 [details] kernel configuration for 2.6.7-hardened-r7
Work around is to simply enable grsecurity. I did not make any changes beyond that. The default setting of grsecurity is "custom". I left it at then and was able to compile past the fs/exec.c file.
*** This bug has been marked as a duplicate of 63203 ***