From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 358F43854833; Thu, 23 Feb 2023 15:58:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 358F43854833 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677167882; bh=WPuHFJXqqtSqnCB6SSounRteA9IVjVEBbTNCqMgIDOQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VP1k3tYs/VlYGWArCQbRhxWPSPl3uny6L0ShXBeo+2fRSy10phFaDK+dFmpdqd3QO j7EiKlJm/BfOegfP/e6juvkxlobV7DAWDjOjQY+LBqn+gdl2LHrb90U9Oxp4zcHSRY yS6AuliFrfMq1XVU49t/vcVOgoM9J+BpkH8uocEE= 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: Thu, 23 Feb 2023 15:58:01 +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: cc 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 Jonathon Anderson changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |janderson at rice dot edu --- Comment #8 from Jonathon Anderson --- (In reply to Stas Sergeev from comment #7) > (In reply to Florian Weimer from comment #6) > > If the auditor cannot intercept libc.so.6 calls because it is already > > loaded, then it can even use the main libc.so.6, and no fully separate > > namespace is needed at all. >=20 > Certainly I don't know the implications, > but in all projects where I needed to > intercept the glibc calls I was using > LD_PRELOAD (or the more advanced techniques > like dlmopen() the libc into another > namespace and intercept it there), but > not LD_AUDIT. I've yet to understand is > there something special in those complex > pltenter/pltexit call-backs that you can't > do by some other means, and are there > many/any users of them? pltenter/pltexit allows you to wrap symbols without knowing the signature of the wrapped function. AFAIK there isn't a way to write a function that does that in standard or GNU C (...without writing straight assembly based on the call ABI, not fun). That said, I don't personally know any users besides sotruss, one of the Gl= ibc dev tools. So do with that what you will. :D > But having audit modules in the main > namespace would help me a lot. My group relies on LD_AUDIT to reliably "escape" the main namespace and acq= uire symbols that won't be overridden by any other in-process tools operating at= the same time. Merging those namespaces will cause us some significant grief. --=20 You are receiving this mail because: You are on the CC list for the bug.=