FreeBSD local r00t zeroday

Manolis Kiagias sonic2000gr at gmail.com
Wed Dec 2 13:28:24 UTC 2009


Andrey S. Rybak wrote:
> Where is detailed instruction? I can not find ...
> I can't apply the patch:
>
> # cd /usr/src/libexec/rtld-elf/
> [root at mymachin /usr/src/libexec/rtld-elf]# patch <rtld.patch
> Hmm...  Looks like a unified diff to me...
> The text leading up to this was:
> --------------------------
> |Index: rtld.c
> |===================================================================
> |--- rtld.c     (revision 199977)
> |+++ rtld.c     (working copy)
> --------------------------
> Patching file rtld.c using Plan A...
> Hunk #1 failed at 366.
> 1 out of 1 hunks failed--saving rejects to rtld.c.rej
> done
>
> What is wrong?

The version of the patch you are trying to apply is for 8.0-RELEASE and
you are probably using 7.2
Here is a version I crafted for 7.2 (use at your own risk,  works for me):

http://people.freebsd.org/~manolis/rtld72.patch



More information about the freebsd-stable mailing list