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: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id BAFB41F953 for ; Tue, 23 Nov 2021 14:03:27 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EAD523858029 for ; Tue, 23 Nov 2021 14:03:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EAD523858029 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1637676207; bh=PYbk0Cv3c7g/mcuU1XRdQTzIFidN+Vb+G4AxSPkYO0I=; h=To:Subject:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=oUCWl2YddUJ5EfsoIF4Iu0HaqUjTufJnTD9NHElPEI617bI7d2ZIxnE6w1Lko/mjJ Lfo6zCwlDQQjpF6pJl/KAaISju82KFV7ERGXZ2rCTVUaz/0wlo+N3HPMWPYgqZ7ua7 yezxOSClm5bluRqkyD/YxjPOqcioyt3uizj53K/U= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 88F43385780A for ; Tue, 23 Nov 2021 14:02:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 88F43385780A Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-86-cUZN2A_gPO-yJ6EYLSccIg-1; Tue, 23 Nov 2021 09:02:40 -0500 X-MC-Unique: cUZN2A_gPO-yJ6EYLSccIg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AA3F01018720; Tue, 23 Nov 2021 14:02:39 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.192.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3836B5F4EA; Tue, 23 Nov 2021 14:02:38 +0000 (UTC) To: Adhemerval Zanella Subject: Re: Fwd: [PATCH v5 00/22] Some rtld-audit fixes References: <20211122114629.Horde._rW0tgxbf_wCwsiLyKcms3g@webmail.rice.edu> Date: Tue, 23 Nov 2021 15:02:36 +0100 In-Reply-To: (Adhemerval Zanella's message of "Tue, 23 Nov 2021 10:58:49 -0300") Message-ID: <87tug3rmv7.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Florian Weimer via Libc-alpha Reply-To: Florian Weimer Cc: John Mellor-Crummey , libc-alpha@sourceware.org, "Mark W. Krentel" , jma14 , Xiaozhu Meng Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" * Adhemerval Zanella: > In fact I think rather than using the argv[0], since it passing the > executable path is just a convention; I think it would be better to > use AT_EXECFN. On recent kernel it is always passed to userland and > kernel should be responsible to hide any filesystem information if it > is required. It's still a relative path to an unknown directory, I think. I expect (but have not checked) that it is the pathname argument to execveat, which may not be meaningful to the new process image. Thanks, Florian