From owner-freebsd-ports@FreeBSD.ORG Sat Jun 3 19:31:44 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D5F116A523 for ; Sat, 3 Jun 2006 19:31:44 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2BA943D5C for ; Sat, 3 Jun 2006 19:31:42 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id B8C9E1A3C2A; Sat, 3 Jun 2006 12:31:42 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 1D4E0515B2; Sat, 3 Jun 2006 15:31:42 -0400 (EDT) Date: Sat, 3 Jun 2006 15:31:41 -0400 From: Kris Kennaway To: PauAmma , freebsd-ports@freebsd.org Message-ID: <20060603193141.GA3544@xor.obsecurity.org> References: <20060602204523.GA6184@roadrunner.buck.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline In-Reply-To: <20060602204523.GA6184@roadrunner.buck.local> User-Agent: Mutt/1.4.2.1i Cc: Subject: Re: PR ports/76915 fell through the cracks? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jun 2006 19:31:47 -0000 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 02, 2006 at 10:45:23PM +0200, Ulrich Spoerlein wrote: > PauAmma wrote: > > >From the initial PR: > >=20 > > When /var (or whichever filesystem holds PKG_DBDIR) is mounted noexec, > > attempts to deinstall ports will fail and leave a mess behind if the > > port has a require or deinstall script. This patch checks for that and > > skips deinstalling if that is the case. > >=20 > > (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D76915 for details) >=20 > I didn't read the patch (yet) and I'm not familiar with the code, but if > we would enforce all pkg-install/deinstall scripts to be sh(1) scripts, > then it's simply a matter of replacing ./foo with 'sh foo', right? And potentially many other similar changes. The full scope of the changes required to fully support a noexec /var is clearly enormous, which is one reason why I don't want to add partial support for this nonstandard and rarely-used configuration. Kris --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEgeOdWry0BWjoQKURAoimAKCyg15aBUiAKZk+BPcwsIr77Ma6OgCfVIlA f7oJCppKCRD0wtPPgl045/0= =Y3HR -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK--