From owner-freebsd-stable@FreeBSD.ORG Wed Apr 21 01:46:42 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E506106566C for ; Wed, 21 Apr 2010 01:46:41 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by mx1.freebsd.org (Postfix) with ESMTP id 030B88FC13 for ; Wed, 21 Apr 2010 01:46:40 +0000 (UTC) Received: by qyk11 with SMTP id 11so7421200qyk.13 for ; Tue, 20 Apr 2010 18:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=K5sGCAJETxjNcQPxWGsp4iwt1lDUaxzw9JX2ASgCfIM=; b=MQB3jb0zb0PM2xljeSw652RZT8HIX4Wv86mkzyhmq6hzclcsiXwsA1Ltse7DWAMe1N PgTwkeVznb5EPr2YuJFmrvReAcH0y6r3N1SNpXClGInVJ0hH10yIwZOYNddfkaFUsdx+ O3ckQBp+dNLjkHmrkNRpSl0KGb+tKqSZ+0Jyk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=dIhojOyhz6TUphuUDkSBiH/dwGmnTl9SHdX2d/RvNwg62xp3J+R6oq09XAG8y8Zzai OROhYgNtnJSGFBQRjfnLmYONKD2qy1avpj3VVXbjMd76J3iArHd3M8AIYVVH7GOJsYJw c/4ouoyUQQJeRLcG+o/lGrQ8gTtwSQr6ueQ8E= MIME-Version: 1.0 Received: by 10.229.28.85 with HTTP; Tue, 20 Apr 2010 18:46:40 -0700 (PDT) In-Reply-To: <4BCE4D0F.2020807@quip.cz> References: <4BCE4D0F.2020807@quip.cz> Date: Tue, 20 Apr 2010 18:46:40 -0700 Received: by 10.229.225.7 with SMTP id iq7mr3209432qcb.26.1271814400288; Tue, 20 Apr 2010 18:46:40 -0700 (PDT) Message-ID: From: Garrett Cooper To: Miroslav Lachman <000.fbsd@quip.cz> Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable@freebsd.org Subject: Re: /libexec/ld-elf.so.1: Cannot execute objects on / 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: Wed, 21 Apr 2010 01:46:42 -0000 2010/4/20 Miroslav Lachman <000.fbsd@quip.cz>: > I have large storage partition (/vol0) mounted as noexec and nosuid. Then > one directory from this partition is mounted by nullfs as "exec and suid" so > anything on it can be executed. > > The directory contains full installation of jail. Jail is running fine, but > some ports (PHP for example) cannot be compiled inside the jail with > message: > > /libexec/ld-elf.so.1: Cannot execute objects on / > > The same apply to executing of apxs > > root@rainnew ~/# /usr/local/sbin/apxs -q MPM_NAME > /libexec/ld-elf.so.1: Cannot execute objects on / > > apxs:Error: Sorry, no shared object support for Apache. > apxs:Error: available under your platform. Make sure. > apxs:Error: the Apache module mod_so is compiled into. > apxs:Error: your server binary '/usr/local/sbin/httpd'.. > > (it should return "prefork") > > So I think there is some bug in checking the mountpoint options, where the > check is made on "parent" of the nullfs instead of the nullfs target > mountpoint. > > It is on 6.4-RELEASE i386 GENERIC. I did not test it on another release. > > This is list of related mount points: > > /dev/mirror/gm0s2d on /vol0 (ufs, local, noexec, nosuid, soft-updates) > /vol0/jail/.nullfs/rain on /vol0/jail/rain_new (nullfs, local) > /usr/ports on /vol0/jail/rain_new/usr/ports (nullfs, local) > devfs on /vol0/jail/rain_new/dev (devfs, local) > > If I changed /vol0 options to (ufs, local, soft-updates) the above error is > gone and apxs / compilation works fine. > > Can somebody look at this problem? Can you please provide output from ktrace / truss for the issue? Thanks, -Garrett