]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
Merge r197808 from head to stable/8:
authorrwatson <rwatson@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 14 Dec 2009 12:19:21 +0000 (12:19 +0000)
committerrwatson <rwatson@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 14 Dec 2009 12:19:21 +0000 (12:19 +0000)
commitfd59fd1624aeaadb6bf9f4f6b7e69e97e8d0e3c8
tree894f1cf57ef433d5a2a7c88a2aa25829509f076f
parentfb642a88c6a1b27b2e2f828a44e2dc464977f673
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

git-svn-id: svn://svn.freebsd.org/base/stable/8@200509 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libexec/rtld-elf/map_object.c