From owner-cvs-all@FreeBSD.ORG Mon Dec 26 11:17:48 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.ORG Delivered-To: cvs-all@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFB3B16A41F; Mon, 26 Dec 2005 11:17:48 +0000 (GMT) (envelope-from sobomax@portaone.com) Received: from bugor.portaone.com (bugor.portaone.com [65.61.200.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1785243D46; Mon, 26 Dec 2005 11:17:47 +0000 (GMT) (envelope-from sobomax@portaone.com) Received: from [192.168.1.2] (S0106000f3d63befd.vs.shawcable.net [70.71.19.119]) (authenticated bits=0) by bugor.portaone.com (8.13.4/8.13.4) with ESMTP id jBQBHgvN065597 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 26 Dec 2005 11:17:44 GMT (envelope-from sobomax@portaone.com) Message-ID: <43AFD14F.9050303@portaone.com> Date: Mon, 26 Dec 2005 03:17:35 -0800 From: Maxim Sobolev Organization: Porta Software Ltd User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Olivier Houchard References: <200511142224.jAEMO0RG057965@repoman.freebsd.org> In-Reply-To: <200511142224.jAEMO0RG057965@repoman.freebsd.org> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1217/Sat Dec 24 14:39:31 2005 on bugor.portaone.com X-Virus-Status: Clean X-Spam-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_00, RCVD_IN_SORBS_DUL,SPF_SOFTFAIL autolearn=no version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on bugor.portaone.com Cc: cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/kern imgact_elf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Maxim.Sobolev@portaone.com List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2005 11:17:49 -0000 Hi, IMHO this approach is suboptimal, since it depends on user's ability to debug reason of failure of each particular script. I think since target platform allows execution of shared libs by default our emulation layer should do the same without requiring user to set some obscure sysctls first. I have prepared a patch to remove that sysctl and make such behaviour default for linux ELF shared libs. Patch can be found here: http://www.pbxpress.com/~sobomax/linux_et_dynamic.patch If there are no objections I would like to commit it (also removing respective linux.4 delta). Thanks! Regards, Maxim Olivier Houchard wrote: > cognet 2005-11-14 22:24:00 UTC > > FreeBSD src repository > > Modified files: > sys/kern imgact_elf.c > Log: > Add a new sysctl, kern.elf[32|64].can_exec_dyn. When set to 1, one can > execute a ET_DYN binary (shared object). > This does not make much sense, but some linux scripts expect to be able to > execute /lib/ld-linux.so.2 (ldd comes to mind). > The sysctl defaults to 0. > > MFC after: 3 days > > Revision Changes Path > 1.166 +7 -1 src/sys/kern/imgact_elf.c > > >