Kylix is hell - ("KYLIX problem with PAX") - part I
Posted: Mon Apr 06, 2009 12:55 pm
Parte 1
Hi Guys
I have environment with Grsecurity in Kernel version 2.6.27.14, but I don't run cgi create in
Kylix. I have the follow problems:
- Same version of aplication don't accpet flags of pax.
- All version don't work and also can't use shared library
- Or when static version return sigkill
I try many form, but I didn't run the specific application, but others cgi (C, Perl) run without problem.
Look the message error of paxctl:
paxctl -C CGI2.cgi
file CGI2.cgi is not a valid ELF executable (invalid SHT_ entry:0)
Look the message error of readelf:
readelf -l CGI2.cgi
readelf: Error: Out of memory allocating 0x61437261 bytes for string table
Elf file type is EXEC (Executable file)
Entry point 0x80541f8
There are 5 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x08048034 0x08048034 0x000a0 0x000a0 R E 0x4
INTERP 0x0000d4 0x080480d4 0x080480d4 0x00013 0x00013 R 0x1
[Requesting program interpreter: /lib/ld-linux.so.2]
LOAD 0x000000 0x08048000 0x08048000 0x232104 0x236104 R E 0x1000
LOAD 0x232104 0x0827f104 0x0827f104 0x3ca78 0x3f10c RWE 0x1000
readelf: Error: no .dynamic section in the dynamic segment DYNAMIC 0x26eaf4 0x082bbaf4 0x082bbaf4 0x00088 0x00088 RW 0x4
Another version, I have sucess when try insert flags but I have problem still because my webserver return error 500.
# paxctl -C CGI2
file CGI2 got a new PT_PAX_FLAGS program header
# paxctl -v CGI2
PaX control v0.5 Copyright 2004,2005,2006,2007 PaX Team <pageexec@freemail.hu>
- PaX flags: -------x-e-- [CGI2]
RANDEXEC is disabled
EMUTRAMP is disabled
readelf -l CGI2
Elf file type is EXEC (Executable file)
Entry point 0x80541f8
There are 6 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x08047034 0x08047034 0x000c0 0x000c0 R E 0x4
INTERP 0x0010d4 0x080480d4 0x080480d4 0x00013 0x00013 R 0x1
[Requesting program interpreter: /lib/ld-linux.so.2]
LOAD 0x000000 0x08047000 0x08047000 0x233104 0x237104 R E 0x1000
LOAD 0x233104 0x0827f104 0x0827f104 0x3ca78 0x3f10c RWE 0x1000
DYNAMIC 0x26faf4 0x082bbaf4 0x082bbaf4 0x00088 0x00088 RW 0x4
LOOS+5041580 0x000000 0x00000000 0x00000000 0x00000 0x00000 0x4
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .dynsym .dynstr .hash .rel.plt .plt .text borland.ressym borland.resstr borland.reshash borland.resdata borland.resspare
03 .data .rodata .got .dynamic .bss
04 .dynamic
05
Please,I didn't know how to resolve this problem, I tried several ways and actions without success, this error only happens with CGI Kylix.
What I can do?
Hi Guys
I have environment with Grsecurity in Kernel version 2.6.27.14, but I don't run cgi create in
Kylix. I have the follow problems:
- Same version of aplication don't accpet flags of pax.
- All version don't work and also can't use shared library
- Or when static version return sigkill
I try many form, but I didn't run the specific application, but others cgi (C, Perl) run without problem.
Look the message error of paxctl:
paxctl -C CGI2.cgi
file CGI2.cgi is not a valid ELF executable (invalid SHT_ entry:0)
Look the message error of readelf:
readelf -l CGI2.cgi
readelf: Error: Out of memory allocating 0x61437261 bytes for string table
Elf file type is EXEC (Executable file)
Entry point 0x80541f8
There are 5 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x08048034 0x08048034 0x000a0 0x000a0 R E 0x4
INTERP 0x0000d4 0x080480d4 0x080480d4 0x00013 0x00013 R 0x1
[Requesting program interpreter: /lib/ld-linux.so.2]
LOAD 0x000000 0x08048000 0x08048000 0x232104 0x236104 R E 0x1000
LOAD 0x232104 0x0827f104 0x0827f104 0x3ca78 0x3f10c RWE 0x1000
readelf: Error: no .dynamic section in the dynamic segment DYNAMIC 0x26eaf4 0x082bbaf4 0x082bbaf4 0x00088 0x00088 RW 0x4
Another version, I have sucess when try insert flags but I have problem still because my webserver return error 500.
# paxctl -C CGI2
file CGI2 got a new PT_PAX_FLAGS program header
# paxctl -v CGI2
PaX control v0.5 Copyright 2004,2005,2006,2007 PaX Team <pageexec@freemail.hu>
- PaX flags: -------x-e-- [CGI2]
RANDEXEC is disabled
EMUTRAMP is disabled
readelf -l CGI2
Elf file type is EXEC (Executable file)
Entry point 0x80541f8
There are 6 program headers, starting at offset 52
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x08047034 0x08047034 0x000c0 0x000c0 R E 0x4
INTERP 0x0010d4 0x080480d4 0x080480d4 0x00013 0x00013 R 0x1
[Requesting program interpreter: /lib/ld-linux.so.2]
LOAD 0x000000 0x08047000 0x08047000 0x233104 0x237104 R E 0x1000
LOAD 0x233104 0x0827f104 0x0827f104 0x3ca78 0x3f10c RWE 0x1000
DYNAMIC 0x26faf4 0x082bbaf4 0x082bbaf4 0x00088 0x00088 RW 0x4
LOOS+5041580 0x000000 0x00000000 0x00000000 0x00000 0x00000 0x4
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .dynsym .dynstr .hash .rel.plt .plt .text borland.ressym borland.resstr borland.reshash borland.resdata borland.resspare
03 .data .rodata .got .dynamic .bss
04 .dynamic
05
Please,I didn't know how to resolve this problem, I tried several ways and actions without success, this error only happens with CGI Kylix.
What I can do?