From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EAA773858D32; Sat, 18 Feb 2023 01:17:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EAA773858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676683075; bh=9YhMKbfkzHlszGcQwOo2Z7YeAubaP5kWYe7J4e3GCzk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fh/lKZxPQnRfaXBoIbVKFdNYeYSRU+4gommnwN52LNCm9lUM44H0T/8/VVdbieiA1 aSBuj3gepn2maeDqetfbIgBjQCajpoDYV0A6sGOKYsgdyte7vfPKUcMBmVRv9Crlgn 8oBAqkS1LjiCymxIAhnufbE9hdX4Msrgk1hGExXU= 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: Sat, 18 Feb 2023 01:17:55 +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 #2 from Stas Sergeev --- (In reply to Florian Weimer from comment #1) > This is currently the expected behavior. But is it a desired/final behavior? > The link editor (ld) is expected to > copy audit entries to the main program as DT_DEPAUDIT entries, so that the > auditors are loaded at run time. But that only works for explicit linking, > it fails with dlopen. It is possible to implement DT_AUDIT for dlopen(), isn't it? Many programs use plugins today, which is dlopen() instead of a direct linking. If dlopen() doesn't handle DT_AUDIT then you can't provide a plugin that uses DT_AUDIT. Is there any reason to not implement it for dlopen? It will likely make DT_DEPAUDIT unneeded as a bonus. :) --=20 You are receiving this mail because: You are on the CC list for the bug.=