From owner-freebsd-current@FreeBSD.ORG Fri Sep 7 19:12:18 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 439B2106566B for ; Fri, 7 Sep 2012 19:12:18 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 0224C8FC12 for ; Fri, 7 Sep 2012 19:12:17 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id q87JCGd8025235 for ; Fri, 7 Sep 2012 13:12:17 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id q87JCETM045199; Fri, 7 Sep 2012 13:12:14 -0600 (MDT) (envelope-from freebsd@damnhippie.dyndns.org) From: Ian Lepore To: Konstantin Belousov In-Reply-To: <20120907185305.GE33100@deviant.kiev.zoral.com.ua> References: <201209071221.37409.jhb@freebsd.org> <20120907164218.GB33100@deviant.kiev.zoral.com.ua> <201209071405.28831.jhb@freebsd.org> <20120907184120.GD33100@deviant.kiev.zoral.com.ua> <1347043699.1143.2.camel@revolution.hippie.lan> <20120907185305.GE33100@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset="us-ascii" Date: Fri, 07 Sep 2012 13:12:14 -0600 Message-ID: <1347045134.1143.4.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Svatopluk Kraus Subject: Re: [patch] mmap() MAP_TEXT implementation (to use for shared libraries) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2012 19:12:18 -0000 On Fri, 2012-09-07 at 21:53 +0300, Konstantin Belousov wrote: > On Fri, Sep 07, 2012 at 12:48:19PM -0600, Ian Lepore wrote: > > On Fri, 2012-09-07 at 21:41 +0300, Konstantin Belousov wrote: > > > After a second thought, I do not like your proposal as well. +x is set for > > > shebang scripts, and allowing PROT_EXEC to set VV_TEXT for them means > > > that such scripts are subject for write denial. > > > > You say that like it's a bad thing. I hate it when I accidentally edit > > a script that's running and then the script fails because I did. I > > would be much happier if it acted just like any other executable and > > prevented modification while it's running. > > For me, if other user can block my modifications of my script by the mere > fact that script has o+rx rights, is indeed bad. I do use real machines > sometime. But you don't feel the same way about a compiled program? I see absolutely no difference between the two, conceptually. To me, changing an application while it's running is bad. It makes no difference what language the application is written in. -- Ian