[grsec] Text Relocations

Peter S. Mazinger ps.m at gmx.net
Mon Dec 13 10:30:45 EST 2004


On Mon, 13 Dec 2004, Samir Mishra wrote:

> Hope someone can enlighten me. I'm running Gentoo with the hardened gcc-3.4.3 
> toolchain & 2.6.7-r10 kernel.
> 
> Recently, while testing grsecurity, I turned on audit_textrel using sysctl. I 
> was surprised to see many standard executables showing up in the log, 
> e.g., /bin/mv, because of "text relocation". I don't fully understand all of 
> this, but I assume text relocations are "a bad thing". How do I go about 
> getting rid of this, for example in /bin/mv. 
> 
> Some details in case it's helpful, --
> 
> amoeba # file /bin/mv
> /bin/mv: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
> 
> amoeba # readelf -h /bin/mv
> ELF Header:
>   Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
>   Class:                             ELF32
>   Data:                              2's complement, little endian
>   Version:                           1 (current)
>   OS/ABI:                            UNIX - System V
>   ABI Version:                       0
>   Type:                              DYN (Shared object file)
>   Machine:                           Intel 80386
>   Version:                           0x1
>   Entry point address:               0x22a0
>   Start of program headers:          52 (bytes into file)
>   Start of section headers:          81556 (bytes into file)
>   Flags:                             0x0
>   Size of this header:               52 (bytes)
>   Size of program headers:           32 (bytes)
>   Number of program headers:         10
>   Size of section headers:           40 (bytes)
>   Number of section headers:         27
>   Section header string table index: 26

Please ask the above on gentoo-hardened, not here

Thanks, Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2



More information about the grsecurity mailing list