From owner-freebsd-stable@FreeBSD.ORG Sun Oct 4 19:07:43 2009 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EBDA106568D for ; Sun, 4 Oct 2009 19:07:43 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id B37278FC08 for ; Sun, 4 Oct 2009 19:07:42 +0000 (UTC) Received: (qmail 13200 invoked by uid 399); 4 Oct 2009 19:07:41 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 4 Oct 2009 19:07:41 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4AC8F27C.8070208@FreeBSD.org> Date: Sun, 04 Oct 2009 12:07:40 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.23 (X11/20090822) MIME-Version: 1.0 To: "Bjoern A. Zeeb" References: <20091003184220.GA2620@curry.mchp.siemens.de> <20091003212308.GA3122@curry.mchp.siemens.de> <20091003215821.V26486@maildrop.int.zabbadoz.net> In-Reply-To: <20091003215821.V26486@maildrop.int.zabbadoz.net> X-Enigmail-Version: 0.96.0 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: jhell , stable@freebsd.org, Andre Albsmeier Subject: Re: security.bsd.map_at_zero=0 problem with samba33 (including solution) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2009 19:07:43 -0000 Bjoern A. Zeeb wrote: > On Sat, 3 Oct 2009, Andre Albsmeier wrote: > > Hi, > >> On Sat, 03-Oct-2009 at 16:27:32 -0400, jhell wrote: >>> On Sat, 3 Oct 2009 14:42 -0000, Andre.Albsmeier wrote: >>> >>>> FYI, >>>> >>>> after setting security.bsd.map_at_zero to 0 on 7.2-STABLE all >>>> samba33 programmes did abort() immediately after start. The >>>> solution was to use >>>> >>>> CONFIGURE_ARGS+= --disable-pie >>>> >>>> -Andre >>>> >>> >>> To add an additional note samba33 even when not running (not enabled >>> by a rcvar) >>> also runs a tdbcleanup routine on shutdown and/or start that also does >>> abort(). >> >> Yes, every samba programme is linked with -pie per default (so >> all abort()). > > > Thanks for reporting the issue. People are aware of the problem now > and we'll try to present a solution within the next days for better > position-independent executable (PIE) handling. > > Meanwhile there are multiple solutions for people affected: > > (1) recompile the port; Just to be clear, you have to recompile the port with --disable-pie added to the CONFIGURE_ARGS in the Makefile. It would also be nice if there were a __FreeBSD_version bump for this new feature. Doug -- This .signature sanitized for your protection