From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E81223858D39; Mon, 27 Feb 2023 07:28:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E81223858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677482919; bh=V8js314GUQyV+x+okyFZ2jPdtWCcBxntWKBsVM6dGPA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qe5fCy7LwaGHItbuemTfwYUarrgnRzhUYlYGF5WHYlksuu386ZVn+bnMH0yhtX8rF BQ/LA1EacLDpBkg+eVXK7cfADvDkmDCM8IsjIn5NZV6CYnpeYg5RAm+XaFmw8z23pL fw6D3kM63sK+w9axA4EpoFQCapdBxhucP9EA4ipw= 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: Mon, 27 Feb 2023 07:28:39 +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 #17 from Stas Sergeev --- Ah, I see your point. So basically you mean, while DT_AUDIT can well be supported for dlopen() right now, it may be slightly inconsistent with la_premap, as it would just skip it. Well, for my use-case this is definitely not a problem because my use-case is only applying auditing to dlmem(), not dlopen(). dlmem() is done later by the dlopen()'ed plugin. So for my case its perfectly fine. Whether it is a generic consistency problem or not, is hard to tell, as currently there is no la_premap so we can't take a look at how dl_main() would have supported it, be it there. :) But I do share your concern, especially since there was once that LD_PREFER_MAP_32BIT_EXE thing that likely didn't skip any objects. So if we are modelling that, then la_premap is something to think about for the implementer of DT_AUDIT support for dlopen(). But please note one more thing. I started dlload_audit_module() exactly because I am not a big believer in DT_AUDIT for dlopen(). DT_AUDIT for dlopen() is just an "escape" scenario. So maybe if we get dlload_audit_module() in, we can just close this? --=20 You are receiving this mail because: You are on the CC list for the bug.=