From owner-freebsd-stable@FreeBSD.ORG Sun Oct 4 16:48:00 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 5AA31106566B for ; Sun, 4 Oct 2009 16:48:00 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by mx1.freebsd.org (Postfix) with ESMTP id E2BB38FC0A for ; Sun, 4 Oct 2009 16:47:59 +0000 (UTC) Received: from mail2.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id n94GlumE028568; Sun, 4 Oct 2009 18:47:56 +0200 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail2.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id n94GluDD030957; Sun, 4 Oct 2009 18:47:56 +0200 Received: (from localhost) by curry.mchp.siemens.de (8.14.3/8.14.3) id n94Glu7s048545; Date: Sun, 4 Oct 2009 18:47:56 +0200 From: Andre Albsmeier To: "Bjoern A. Zeeb" Message-ID: <20091004164756.GA6021@curry.mchp.siemens.de> References: <20091003184220.GA2620@curry.mchp.siemens.de> <20091003212308.GA3122@curry.mchp.siemens.de> <20091003215821.V26486@maildrop.int.zabbadoz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091003215821.V26486@maildrop.int.zabbadoz.net> X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.20 (2009-06-14) 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 16:48:00 -0000 On Sat, 03-Oct-2009 at 22:27:39 +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; but as more than just samba might be affected > and we generally do not want to flip the pie switch everywhere that's > probably only a temporary, private solution. I'll stick to this since I am happy about having the map_at_zero option and want to continue to try it out on 7.2-STABLE. And I see now reason why samba has to be linked with -pie (without -pie it is also 4% smaller). -Andre -- "I think there is a world market for maybe five computers." - Thomas Watson, chairman of IBM, 1943