From owner-freebsd-current@FreeBSD.ORG Fri Sep 7 18:53:14 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31E5B106564A; Fri, 7 Sep 2012 18:53:14 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 9C9D68FC08; Fri, 7 Sep 2012 18:53:13 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q87IrHtp032633; Fri, 7 Sep 2012 21:53:17 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q87Ir5b7072322; Fri, 7 Sep 2012 21:53:05 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q87Ir5pY072321; Fri, 7 Sep 2012 21:53:05 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 7 Sep 2012 21:53:05 +0300 From: Konstantin Belousov To: Ian Lepore Message-ID: <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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="p1Ewym4VCenIjxkR" Content-Disposition: inline In-Reply-To: <1347043699.1143.2.camel@revolution.hippie.lan> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua 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 18:53:14 -0000 --p1Ewym4VCenIjxkR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. --p1Ewym4VCenIjxkR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlBKQpEACgkQC3+MBN1Mb4ipQQCfbNRYlkIL48U63ReDclHnuvt/ RgsAn380CgsxA4ED0/OVBA3FruwghmZy =lxhk -----END PGP SIGNATURE----- --p1Ewym4VCenIjxkR--