From owner-freebsd-stable@FreeBSD.ORG Fri Dec 16 19:25:38 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EDB716A420 for ; Fri, 16 Dec 2005 19:25:38 +0000 (GMT) (envelope-from mandrews@bit0.com) Received: from mindcrime.bit0.com (bit0.com [216.24.42.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2379743D98 for ; Fri, 16 Dec 2005 19:25:27 +0000 (GMT) (envelope-from mandrews@bit0.com) Received: from localhost (localhost.bit0.com [127.0.0.1]) by mindcrime.bit0.com (Postfix) with ESMTP id AC7DA730037; Fri, 16 Dec 2005 14:25:26 -0500 (EST) Received: from mindcrime.bit0.com ([127.0.0.1]) by localhost (mindcrime.bit0.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01910-09; Fri, 16 Dec 2005 14:25:25 -0500 (EST) Received: from localhost (localhost.bit0.com [127.0.0.1]) by mindcrime.bit0.com (Postfix) with ESMTP; Fri, 16 Dec 2005 14:25:25 -0500 (EST) Date: Fri, 16 Dec 2005 14:25:24 -0500 (EST) From: Mike Andrews To: Paulo Fragoso In-Reply-To: <43A29E8F.8030101@nlink.com.br> Message-ID: <20051216142215.B2542@bit0.com> References: <43A29E8F.8030101@nlink.com.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at bit0.com Cc: freebsd-stable@freebsd.org Subject: Re: Diskless /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: Fri, 16 Dec 2005 19:25:38 -0000 On Fri, 16 Dec 2005, Paulo Fragoso wrote: > After upgrade from FreeBSD 5.3 to FREEBSD_5_4 (cvs), our diskless > machines didn't work correctly, many applications using dynamic > libraries didn't start, this error was showed: > > /libexec/ld-elf.so.1: Cannot execute objects on / > > We found on all diskless machines had MNT_NOEXEC flags set on (fstatfs). > After that we have changed rtld.c changed: > > --- rtld.c.orig Thu Dec 15 17:26:41 2005 > +++ rtld.c Thu Dec 15 17:38:15 2005 > @@ -1267,7 +1267,7 @@ > close(fd); > return NULL; > } > - if (fs.f_flags & MNT_NOEXEC) { > + if (fs.f_flags & MNT_NOEXEC && strcmp(fs.f_mntonname,"/") ) { > _rtld_error("Cannot execute objects on %s\n", > fs.f_mntonname); > close(fd); > return NULL; > > Now, all diskless stations works fine. > > Is there another solution for this case? We had the same problem with our netboot cluster, and going from RELENG_5_4 (5.4-RELEASE) up to RELENG_5 (5-STABLE) fixed it. Mike Andrews * mandrews@bit0.com * http://www.bit0.com It's not news, it's Fark.com. Carpe cavy!