Gentoo Archives: gentoo-hardened

From: Michael Decker <MDecker@×××××.de>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] RSBAC / PaX -> Compiling error
Date: Tue, 04 Jul 2006 14:22:25
Message-Id: 44AA78DB.8030203@tesis.de
1 Hi!
2
3 I try to run an hardened gentooo, but fails on compiling the kernel.
4
5 I follow this manual by configuration:
6 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1
7 http://www.gentoo.org/proj/en/hardened/rsbac/quickstart.xml
8 http://gentoo-wiki.com/SECURITY_Encrypting_Root_Filesystem_with_DM-Crypt_with_LUKS
9
10 No I get this error after running "make && make modules_install":
11 --- SNIP --
12 dnsdomainname: Unknown host
13 UPD include/linux/compile.h
14 CC init/version.o
15 LD init/built-in.o
16 LD .tmp_vmlinux1
17 fs/built-in.o: In function `load_elf_binary':
18 binfmt_elf.c:(.text+0x396bb): undefined reference to `pax_set_initial_flags'
19 make: *** [.tmp_vmlinux1] Error 1
20 (chroot) livecd linux # make menuconfig
21 scripts/kconfig/mconf arch/i386/Kconfig
22 #
23 # using defaults found in .config
24 #
25
26
27 *** End of Linux kernel configuration.
28 *** Execute 'make' to build the kernel or try 'make help'.
29 --- SNAP ---
30
31 I don't understand this error...
32
33 But I've detect that RSBAC and PAX manual are different, could be here
34 an error? (showing only the differences here):
35 http://www.gentoo.org/proj/en/hardened/rsbac/quickstart.xml
36
37 --- SNIP ---
38 PaX Control --->
39 [*] Support soft mode (Turn that option off on a production kernel)
40 [ ] Use legacy ELF header marking
41 [ ] Use ELF program header marking
42 Use ELF program header marking MAC system integration (direct) --->
43 (X) direct
44
45 Non-executable pages --->
46 [*] Enforce non-executable pages (NEW)
47 [*] Paging based non-executable pages
48 (You usually want to select the PAGEEXEC method on x86 since on
49 newer PaXs, revert to SEGMEXEC if you are having issues)
50 [*] Segmentation based non-executable pages (NEW)
51 [*] Restrict mprotect()
52 [ ] Disallow ELF text relocations
53 (This option breaks too much applications as of now)
54 --- SNAP ---
55
56 But PaX tells http://www.gentoo.org/proj/en/hardened/pax-quickstart.xml
57 --- SNIP ---
58 PaX Control ->
59 [ ] Support soft mode
60 [*] Use legacy ELF header marking
61 [*] Use ELF program header marking
62 MAC system integration (none) --->
63
64 Non-executable page ->
65 [*] Paging based non-executable pages
66 [*] Emulate trampolines
67
68 Address Space Layout Randomization ->
69 [*] Randomize kernel stack base
70 [*] Randomize ET_EXEC base
71 --- SNAP ---
72
73 Could somebody help me out, here?
74
75 Thanks a lot
76
77 Bye,
78 Michael Decker
79
80
81 --
82 Michael Decker Michael.Decker@×××××.de
83 TESIS SYSware GmbH http://www.tesis.de
84 Baierbrunnerstr. 15 * 81379 Muenchen * Tel. +49 89 747377-0
85
86 --
87 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] RSBAC / PaX -> Compiling error pageexec@××××××××.hu