From nobody Thu Nov 14 00:43:10 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XphG666jlz5cpL3; Thu, 14 Nov 2024 00:43:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XphG63WSBz4qtZ; Thu, 14 Nov 2024 00:43:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731544990; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JJxGFkWSwr50dhXFJs5/5a8rhmlI6NdRmZO2JHpUaUI=; b=weO6R8nWIR/1LGRpoUlpC6roKJyww65/hYVmQVjRm+x+1bA+yCDeQ2lBKM/UeoHs7M+eMM yTTZS/W7bHAg75vsucwZuPFVuIK+ZQu281ZSqfdui7xQFSZ//cy14mSnP+XBLc8FPOL5Cp cM8kuZFrqAOGb6DPCgbqyxPJN0JMT3JJwEMMjDo+XqIndvq0i/Q5P3zcma+B6TfAIbU1DC RfqrIeLaJxolIGJ+Nn5bYAf/I/D5Gv+JYc97wAlVSSL9tfCtAsE6PWMPZE0ucWc7BbGGK+ wCd4MR+5b3lE7IBzzY0F+50vQMi5wt76Fd0Glas45HFwUztjk731gMTuL4GLaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731544990; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JJxGFkWSwr50dhXFJs5/5a8rhmlI6NdRmZO2JHpUaUI=; b=cxMY/A5iHO1KdDMOUM+sPhXA6YdBil9Qkc59blOCFNBaI7kYCArg+5UhBe4TeoDmjlhkbG +5/jGeC4IRHOw0jkyeDgCtR28ArQ3hJPR92oHr6tz+RJseLaf3nWp/H0JUbrSp7ggW3hMQ NbDb3dBVg72XiGwl/0q/vU4kWI0HfhgPdj8OAosRGdFtjwJc/QwzegxNRH/RjM7dNGIKse YtP1/eyPwaq0SufR3qvpHWFv1CZ24WgxJVOs2AVIqP/M/W/ZcwqGN20iR66aKwnDQtT7xS hBq2UjZolDLW+gCufZQng9Byrr2V4EqURy4eIMm66lWS5AThcHakRkgWr0Kigw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731544990; a=rsa-sha256; cv=none; b=TnFzzWHdwJEl4OymZLi1OasXBvjqJYxTMyccKXo8nj4+WygKFonvK1Wq/pwnDz7IJFnlaS 1tBXtpjdr8/5SGSMDrrJl8VIJueporJNur2A/enyw9G8h5RFx4nLHtQt66NKqR6BT+rznw uqRblUKHmizvkXCjsg42tj3PKIe6RTec8f7oMOl+qVIngntudnOIwdDKVxtaNjKmQBjz6t Wgw72U3sE1Lav33dNTewSmI6XcCf/BcTgzjNRtN/E9HtYCvu+eoV3mHcbPyZMFXRVTPcmC 9ryv46Vb/qt+DOf+6BFL2rYSL8IUkxGdfdotg6G5uX9o8p3iqLiizcGYn4hcBA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XphG633cvzGyP; Thu, 14 Nov 2024 00:43:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AE0hAT0024502; Thu, 14 Nov 2024 00:43:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AE0hAvk024499; Thu, 14 Nov 2024 00:43:10 GMT (envelope-from git) Date: Thu, 14 Nov 2024 00:43:10 GMT Message-Id: <202411140043.4AE0hAvk024499@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: dcdc0d716715 - stable/14 - rtld.1: cross-reference rtld_get_var.3 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: dcdc0d71671536faa0919b2ccb996ff5173ce2a4 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=dcdc0d71671536faa0919b2ccb996ff5173ce2a4 commit dcdc0d71671536faa0919b2ccb996ff5173ce2a4 Author: Konstantin Belousov AuthorDate: 2024-10-31 20:20:39 +0000 Commit: Konstantin Belousov CommitDate: 2024-11-14 00:42:17 +0000 rtld.1: cross-reference rtld_get_var.3 (cherry picked from commit 16d000bdac54d7153f33a0d050bcc4307b702751) --- libexec/rtld-elf/rtld.1 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libexec/rtld-elf/rtld.1 b/libexec/rtld-elf/rtld.1 index 5631c28e1f84..62e4fc5676c2 100644 --- a/libexec/rtld-elf/rtld.1 +++ b/libexec/rtld-elf/rtld.1 @@ -138,6 +138,15 @@ all the environment variables listed below, but is being prefixed with for example: .Ev LD_32_TRACE_LOADED_OBJECTS . If the activated image is setuid or setgid, the variables are ignored. +.Pp +The run-time linker is able to access the environment provided +at process startup. +After startup, environment variables are maintained by higher-level +libraries and are not accessible by the run-time linker. +At run-time, effective settings can be queried using +.Xr rtld_get_var 3 , +and some of them can be changed with +.Xr rtld_set_var 3 . .Bl -tag -width ".Ev LD_LIBMAP_DISABLE" .It Ev LD_DUMP_REL_POST If set, @@ -527,6 +536,7 @@ The libmap configuration file for 32-bit binaries on 64-bit system. .Xr ld 1 , .Xr ldd 1 , .Xr dlinfo 3 , +.Xr rtld_get_var 3 , .Xr capsicum 4 , .Xr elf 5 , .Xr libmap.conf 5 ,