From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 987BF3858D20; Mon, 27 Feb 2023 06:57:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 987BF3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677481074; bh=U1TqJmVBeoSHe5O2ZX79c4PB8ZaDhOs0XoLcv8yNYF8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OnM622Q01lGrquB1EcsfCW23btB2c5jKZCzFGKk97PLYlCpg4rfM48kjwdxyd0wTD 1ycjKF6V/E4x7+KkHrmz2HqbNAw69+LQgZs2D2doOuZCvhGZ1n4HMbINEgfinqpnWq uDLWUA5VQGjVBttk/7Es772tbkeyqYzUkRP01l1w= From: "janderson at rice dot edu" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/30134] DT_AUDIT is ignored for dlopen()ed solib Date: Mon, 27 Feb 2023 06:57:54 +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: janderson at rice dot edu 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 #16 from Jonathon Anderson --- (In reply to Stas Sergeev from comment #15) > > I suppose solibs could be different, but AFAICT you would have to refac= tor > > _dl_map_object_from_fd to *also* read the dynamic section and recursive= ly > > load any auditors *before* its call to _dl_map_segments. >=20 > Or just do similar to dl_main() and call the > new auditors at the end? Of course objsearch > will be skipped, but its the same for dl_main() > and no one complained. It would be really weird > if the auditor wants to alter the object path > of the object to which it linked to. Won't it skip la_premap too? Because DT_AUDIT auditors would only be loaded after the object has been mapped (and the dynamic section is accessible). la_premap has already fired before the auditor is even loaded, so the audit= or entirely unable to customize the mapping for the object itself. Based on comment #13 isn't that a critical problem for your use case? --=20 You are receiving this mail because: You are on the CC list for the bug.=