Date: Mon, 14 Dec 2009 12:19:21 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/libexec/rtld-elf map_object.c Message-ID: <200912141219.nBECJa8H082945@repoman.freebsd.org>
index | next in thread | raw e-mail
rwatson 2009-12-14 12:19:21 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
libexec/rtld-elf map_object.c
Log:
SVN rev 200509 on 2009-12-14 12:19:21Z by rwatson
Merge r197808 from head to stable/8:
In rtld's map_object(), use pread(..., 0) rather than read() to read the
ELF header from the front of the file. As all other I/O on the binary
is done using mmap(), this avoids the need for seek privileges on the
file descriptor during run-time linking.
Sponsored by: Google
Revision Changes Path
1.22.2.2 +1 -1 src/libexec/rtld-elf/map_object.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912141219.nBECJa8H082945>
