From owner-cvs-src-old@FreeBSD.ORG Tue Oct 6 17:14:58 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEC7D106568B for ; Tue, 6 Oct 2009 17:14:58 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 837FE8FC08 for ; Tue, 6 Oct 2009 17:14:58 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n96HEw65009295 for ; Tue, 6 Oct 2009 17:14:58 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n96HEwR1009294 for cvs-src-old@freebsd.org; Tue, 6 Oct 2009 17:14:58 GMT (envelope-from rwatson@repoman.freebsd.org) Message-Id: <200910061714.n96HEwR1009294@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rwatson@repoman.freebsd.org using -f From: Robert Watson Date: Tue, 6 Oct 2009 17:14:39 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/libexec/rtld-elf map_object.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2009 17:14:58 -0000 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