From owner-svn-src-head@freebsd.org Wed Mar 15 22:58:00 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9DB37D0EF10; Wed, 15 Mar 2017 22:58:00 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mailout.stack.nl (mailout05.stack.nl [IPv6:2001:610:1108:5010::202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout.stack.nl", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6BD211A42; Wed, 15 Mar 2017 22:58:00 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mailout.stack.nl (Postfix) with ESMTP id 8C69A55; Wed, 15 Mar 2017 23:57:49 +0100 (CET) Received: by snail.stack.nl (Postfix, from userid 1677) id 7B6FC28497; Wed, 15 Mar 2017 23:57:49 +0100 (CET) Date: Wed, 15 Mar 2017 23:57:49 +0100 From: Jilles Tjoelker To: Konstantin Belousov Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r315331 - in head/libexec/rtld-elf: . aarch64 amd64 arm i386 mips powerpc powerpc64 riscv sparc64 Message-ID: <20170315225749.GB8141@stack.nl> References: <201703152111.v2FLBwrD051923@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201703152111.v2FLBwrD051923@repo.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 22:58:00 -0000 On Wed, Mar 15, 2017 at 09:11:58PM +0000, Konstantin Belousov wrote: > Author: kib > Date: Wed Mar 15 21:11:57 2017 > New Revision: 315331 > URL: https://svnweb.freebsd.org/changeset/base/315331 > Log: > Implement LD_BIND_NOT knob for rtld. > From the manpage: > When set to a nonempty string, prevents modifications of the PLT slots > when doing bindings. As result, each call of the PLT-resolved > function is resolved. In combination with debug output, this provides > complete account of all bind actions at runtime. > Same feature exists on Linux and Solaris. Since this feature heavily affects timing (possibly making race conditions easier to exploit) and may prevent making parts of the GOT read-only, it seems a good idea to treat this environment variable as dangerous for setuid and setgid processes. -- Jilles Tjoelker