From nobody Wed May 28 21:02:37 2025 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 4b725B2C03z5xFwr; Wed, 28 May 2025 21:02:38 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4b72596SVHz3Ks3; Wed, 28 May 2025 21:02:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748466157; 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=+t1+MwgV0coat/inYLD2ggVwE+TfLkcFEd0Pg6f8szM=; b=OBCwm9VKX3G37QK/qtCSJaR4PrVD6LcyBWCPnCtsA5A0ibUfwVqVSKLcG+mEICMRV1+TNU E3iyc7MPxVoRzOSswu1I16SNFhn2yr+PKEoe0YcarkZnlI/5brVbm4qQjtdPPvjsAKLXKx ByR+jka7kkpQmcTNAhLLIZtMNmHcOyCz/JKcWzfJfqI/sdCoRP+7TmyNthsnZklOvdvrG9 0IdQsdrsdyiEoOZ8hMhU0axtCqh20MWOAnbBq9eUzMWwEarTCYB7CE3kMK88PAIu+sE0jq e+RMk4nHpG/YnLUcLeS2qL+11lVGnifLhWJlV5aQ+LkxBNEBwvHYULM4TV3Ygw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1748466157; a=rsa-sha256; cv=none; b=qTvfWfvrfWG69s4ctVdWOQEQBkb6CmcHTBZj5SU0/AbKdUtnHZSy78Px1/3/Q6T1u8Gq6R tNr2zjqZvORDq5CK0D0mKxOCgyuPl5wie0IbLQatL6djbwUB9pAlieRoc16xTszO9cxeQ0 WckVdfm/ZMZZnA8PqJ8TakVICxdLR+RTxS+GecTYupIZivHcrRPy22lQPUduzLN85M+VO5 LSVueiQbreHsqfcj3Zk8/z0xmY12+eKFA2TzYdgsRhg29j3ut35f79DxvxZi5OK+T1+pTA g5pbZm2L9hCk0ZBxkaiX6MTiLEegIqf8xz8M2dNA2vTVVUQ3+z64Naqv40irAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748466157; 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=+t1+MwgV0coat/inYLD2ggVwE+TfLkcFEd0Pg6f8szM=; b=uqi6Pk24prnQ0m20NXKk521c37C8XeVJlBBZez/jJdWjmotnn8PWv4e1E9oh/Uz5z8s/8Q QEg6KQVxLQ4dRKbhruF60UZZfbS5Qcz3W8JyJr2aUsOy2n0kJ/PkctZ11Jz15PYrWUAFyb koR1Ci2vMZub5RyDVMjjl2P2tBA4TDZ/Dd4QakQ0HPktFaHVUME/LUcxWfgVkMTYRk7BwA ahUSqwn2AsDtWXzImAk1Q/EgPkKd59X5MvdasdBAelrbRUQYQUwqaDlckqO07zeRu5jyB/ WMDngUVLFobyABrGL6cVdJpwMTo0fpTQXR3CoWqrHrk5MHA16X6T6REAkTSBbQ== 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 4b72595v2zztHS; Wed, 28 May 2025 21:02:37 +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 54SL2b2R060972; Wed, 28 May 2025 21:02:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 54SL2bJ3060969; Wed, 28 May 2025 21:02:37 GMT (envelope-from git) Date: Wed, 28 May 2025 21:02:37 GMT Message-Id: <202505282102.54SL2bJ3060969@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alexander Ziaee Subject: git: 616bb0b23083 - main - pam_xdg.8: Improve usage and standards 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: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 616bb0b230835e8b88d032e2026854ad031afea2 Auto-Submitted: auto-generated The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=616bb0b230835e8b88d032e2026854ad031afea2 commit 616bb0b230835e8b88d032e2026854ad031afea2 Author: Alexander Ziaee AuthorDate: 2025-05-28 20:43:03 +0000 Commit: Alexander Ziaee CommitDate: 2025-05-28 20:43:16 +0000 pam_xdg.8: Improve usage and standards Explain the directory created by this module, its usage, and a bit more about the standard. MFC after: 3 days Reviewed by: mhorne, manu Approved by: mhorne (mentor) Differential Revision: https://reviews.freebsd.org/D50440 --- lib/libpam/modules/pam_xdg/pam_xdg.8 | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/libpam/modules/pam_xdg/pam_xdg.8 b/lib/libpam/modules/pam_xdg/pam_xdg.8 index 9b97d3626531..9b335751a9fb 100644 --- a/lib/libpam/modules/pam_xdg/pam_xdg.8 +++ b/lib/libpam/modules/pam_xdg/pam_xdg.8 @@ -22,7 +22,7 @@ .\" * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" * SUCH DAMAGE. -.Dd August 22, 2024 +.Dd May 20, 2025 .Dt PAM_XDG 8 .Os .Sh NAME @@ -35,17 +35,26 @@ .Pa pam_xdg .Op Ar arguments .Sh DESCRIPTION -The xdg service module for PAM sets up the runtime directory according -to the XDG specifications. +The xdg service module for PAM creates the runtime files base directory +according to the Cross Desktop Group Base Directory Specification. .Pp By default the directory is created under -.Pa /var/run/xdg/ . +.Pa /var/run/xdg/ Ns $ Ns Ev USER . .Pp The following option may be passed to the authentication module: -.Bl -tag -width ".Cm runtime_dir_prefix" +.Bl -tag -width "runtime_dir_prefix=directory" .It Cm runtime_dir_prefix Ns = Ns Ar directory Use an alternate base directory .El +.Sh ENVIRONMENT +.Bl -tag -width indent +.It Ev XDG_RUNTIME_DIR +The location of the runtime files base directory created by this module. +Note that the module does not set this environment variable. +.El +.Sh STANDARDS +The directory created by this module conforms to the +.Lk https://specifications.freedesktop.org/basedir-spec XDG Base Directory Specification . .Sh SEE ALSO .Xr pam 3 , .Xr pam.conf 5