From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 406681F463 for ; Tue, 10 Dec 2019 19:33:09 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=QRkYYC3WLp0n5KMP woExuAkkeDrLzQFgKJg+j26SMuwz9u96BBeAt3CZGz4ZxVymFuXgNAPQlITxbSYT E7bV+Bhv2ImPqth6GMZBjsY52punFmdOe8Z8oDG2mUGju6/+5ALGd1tZ0wTXs5ZR 5AzLDPZrae/pIwjmOsHbYbKCQdA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=Y4VBdyhGZtxYc6XXFOiEqG o8DPo=; b=sjtVprV96cxocJbWOdM9vn5TYxOPVa5Gc2kCmHF6pnvGD/vZS8c3YV Vba1W+iN/oZQ6xAia6xx4S/xg+E5wDrzW5gkCIRwDEhcAW6ZhFR4LDF5UZ3RhRfe uuV817msPxfca9+WwpJV//sIE8LdStlQPWuAw8A1JX5dfw7WTictI= Received: (qmail 88786 invoked by alias); 10 Dec 2019 19:33:06 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 88778 invoked by uid 89); 10 Dec 2019 19:33:06 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: us-smtp-delivery-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576006384; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Oh8OETdASWsXAdZMUyuJPr+a7ryXI6DBuwWqu5XRd+c=; b=eLynDGtXVU0Wh6dIo+1YVpcHkB+cWZrUntLv+2S26QCQddm87CbUYL0vNvi4+pBaledoz6 iN6TzW6p+zrRM92yS8vFvM0AUPeJW+GQT/RhsegKga3n82v6B6BG2SD91hrI1TPIUiu7Oy fgpSofH7FWimPtN4SUGlFn8pGD5jV6w= Subject: Re: RFC: test-in-container vs ld.so To: DJ Delorie , libc-alpha@sourceware.org References: From: Carlos O'Donell Message-ID: Date: Tue, 10 Dec 2019 14:33:00 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 12/6/19 3:09 PM, DJ Delorie wrote: > > Amusingly, test-container.c has for a long time already had this code: > > > if (strcmp (argv[1], support_objdir_elf_ldso) == 0) > { > ++argv; > --argc; > while (argv[1][0] == '-') > { > if (strcmp (argv[1], "--library-path") == 0) > { > ++argv; > --argc; > } > ++argv; > --argc; > } > } > > > So, we're already not running ld.so in the container anyway :-P > > IIRC we made a point of running the test program as PID 1 in the > container, which precludes running under other programs. Yay! Does that mean we don't have a bug? -- Cheers, Carlos.