Date: Tue, 6 Oct 2009 17:14:39 +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: <200910061714.n96HEwR1009294@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2009-10-06 17:14:39 UTC FreeBSD src repository Modified files: libexec/rtld-elf map_object.c Log: SVN rev 197808 on 2009-10-06 17:14:39Z by rwatson 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. MFC after: 1 month Sponsored by: Google Revision Changes Path 1.23 +1 -1 src/libexec/rtld-elf/map_object.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910061714.n96HEwR1009294>