Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 80292

Summary: (kernel) linux-2.6.10-rsbac-r1 (rsbac-dev-sources) make gives error--looks like in core kernel
Product: Gentoo Linux Reporter: Matthew C. Tedder <teddemc>
Component: HardenedAssignee: Guillaume Destuynder (RETIRED) <kang>
Status: RESOLVED WORKSFORME    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Matthew C. Tedder 2005-01-31 22:35:16 UTC
make gives error (on x86 (amd duron)):  

include/linux/mm.h lines 134 and 143, structure has no member "flags"

I am going to try the regular hardened kernel now, because I cannot resolve this.  The project page for it was rather impressive though... I am sad.

Reproducible: Always
Steps to Reproduce:
1. emerge rsbac-dev-sources
2. zcat /proc/config.gz >/usr/src/linux-2.6.10-rsbac-r1
3. cd /usr/src/linux-2.6.10-rsbac-r1
4. make



Actual Results:  
  CHK     include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CC      init/main.o
In file included from include/linux/rmap.h:10,
                 from init/main.c:46:
include/linux/mm.h: In function `pax_get_flags':
include/linux/mm.h:134: error: structure has no member named `flags'
include/linux/mm.h: In function `pax_set_flags':
include/linux/mm.h:143: error: structure has no member named `flags'
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2


Expected Results:  

that it works
Comment 1 Guillaume Destuynder (RETIRED) gentoo-dev 2005-02-04 09:12:25 UTC
Hi,
Don't feel sad :) and please make sure that you enabled the PaX settings as HOOK in PaX kernel options before compiling.

There is a small tutorial here:
http://www.gentoo.org/proj/en/hardened/rsbac/quickstart.xml

With
[*] RSBAC support for PAX policy

you need:

[*] Enable various PaX features
PaX Control  --->
Use ELF program header marking MAC system integration (hook)  --->
        (X) hook


Please report me if it now works fine, thanks.
Comment 2 Guillaume Destuynder (RETIRED) gentoo-dev 2005-02-06 16:35:06 UTC
please tell me if it worked out, else i'll mark this bug invalid in a few days (as it should work anyway, its a known issue)
Comment 3 Guillaume Destuynder (RETIRED) gentoo-dev 2005-02-20 05:58:54 UTC
no answer, closing
btw, newer recomandation is using the direct integration, not hook, thought both work.