From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by sourceware.org (Postfix) with ESMTPS id 446C03857C44 for ; Wed, 7 Jul 2021 09:23:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 446C03857C44 Received: by mail-lj1-x231.google.com with SMTP id s18so1842172ljg.7 for ; Wed, 07 Jul 2021 02:23:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=iJOOzM4qtIGPg7KycMaMzBT2RLPiy52lpcO/Eot/fW0=; b=U7N1BYVyRXow/077gV8ysPeArc37sCuS54JoV5ybYqbyNCy5SA+wJDqzpS7FV3N32D xZ/MFbcjyb3DRhYYsCgzKdUceZRsZgGQpYeq9cxYKPQYFphykI87HZrgjVMBR2ADXG6D F3hWiO63xtN1t8D1BYkbDLkpAlNjZXw0VKktCW9pBHNeDje8j72Sq5C1D3iawDCAZiBY D2fMLWjKDf+/IDrbYhgGEzENQ3kWvfHo+rAbdCPDNVfgjD0ZLtS/7Fnz227oILF+OqwW NHXyLW14iZB57JNAKNyxZ8bPxuyiEyJY1fhEnG+tYmTfWKTdlGiUpXzs3VH03eMuzm6i AbSQ== X-Gm-Message-State: AOAM531Gq/ButI9Uy0AWLCwbIudA2gGWpWaDNrpM/n7HeDuOIA73/hHH nNddiNJxaSohv9+9LGUPFidC9GATgWTf1ysk31i8ScW3 X-Google-Smtp-Source: ABdhPJwrdXhZQEIFbhaQfaiXs5mOI3qN2k9lVVJszOhSsTbkZR8/OY2OJd16Ryk2EHur5w4f1S6laxbb3VbZO4S54/w= X-Received: by 2002:a2e:9d1a:: with SMTP id t26mr18699768lji.10.1625649812640; Wed, 07 Jul 2021 02:23:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fengkai Sun Date: Wed, 7 Jul 2021 17:23:21 +0800 Message-ID: Subject: Re: Cannot audit dlopen-ed libraries? To: libc-help@sourceware.org X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2021 09:23:35 -0000 Hi list, I did more experiments and found functions inside dlopen-ed libraries can be audited with RTLD_LAZY instead of RTLD_NOW set. However, I want to audit all of the symbol bindings during dlopen, like those printed by setting LD_DEBUG=bindings. Is this possible? Best, Fengkai