From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 282963858CDA; Sun, 26 Feb 2023 17:09:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 282963858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677431361; bh=jbpu4RfMXD38705aLCqMiJMgHhWx2fTapH9l/1xm5ps=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WeO2uAs585j+/o9+7UYQuV7tV1/Spe7N8WG2ihGuzRE2UW0vyv4JZPKrWPlU2nbqw csE4Dx/KMSuSJ5w9csY2DNs/uNZt+ee9HJPAy3hjqkQfZc0Ub0mhf+o6na0IY8Dznr bbP+8+6AlqaFQlyG42ZE6rcJ/BUUf60Xym8yoGI8= From: "stsp at users dot sourceforge.net" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/30134] DT_AUDIT is ignored for dlopen()ed solib Date: Sun, 26 Feb 2023 17:09:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.38 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stsp at users dot sourceforge.net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30134 --- Comment #13 from Stas Sergeev --- (In reply to Jonathon Anderson from comment #12) > Correct me if I'm wrong, but isn't the solib mapped before DT_AUDIT is re= ad? See elf/rtld.c:dl_main. At around line 1844 you see /* If we have auditing DSOs to load, do it now. */ Then LD_PRELOADs are loaded, then DT_NEEDED. Then you have la_activity and la_objopen. So I think auditor is loaded first and that's intentional. > So the proposed la_premap wouldn't apply to the solib with the DT_AUDIT, > only to what it loads and whatever gets loaded later? Which doesn't sound= at > all like what you want. Well, both parts are not true. :) It will be applied to the lib being loaded, AND I want to customize another lib loaded even later rather than this one. --=20 You are receiving this mail because: You are on the CC list for the bug.=