From nobody Thu Apr 11 13:25:02 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 4VFgRM0VRJz5HQYv; Thu, 11 Apr 2024 13:25:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VFgRL6pWGz57T8; Thu, 11 Apr 2024 13:25:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712841903; 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=6/5Dfz5WPLTNJQT1qsx5dlIDlaZOwetadyX5CEFBrOw=; b=ByXDsVBkF1UBMFG10A0RS/BwA4akHT2dSTJ1KqHo/+ksx5VKtx6L1hFXBHDh35mBN1uAW4 Yb/CF9kFO2/GXMHrP6KcnEwzGOyeyIuSa6E4zhhkRs8qvqpmzK3OfYvZnidP0VbtqwvJkd pUhJjSfPkfroxrMH5UIMQ0jg/GHFbCBa3sFCo2IZsu+bhoHVJoJA19pAWQGJHeyz8x/zuP 0llHdjfEJulciwwmxFXNCNH/lMvJsGh7aOmGIruh/RDxDNafIKjqR1owSAsj3W8s0CHI3G 1t21jLpz9xID+Alj/CezXKc6mdoatfQwPvbC1OiZZMkv6toDEpShM0KnUnO/jw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712841903; a=rsa-sha256; cv=none; b=b6eGUUOV3CLr1Rkxpipt4YKg0cfkyK2tpLeOyhjFK+tAZnK5sgPDrRDNiaMs7VlqzLl7ha V/D5oZslNUOF6QnUKV+LtXSoSr75QaVUSVyg4+C0ggazVxFxf/APCblUehzOm0IoR3lEwn 1pvco7ffQIBEFZhMgVIwjy21fSgFNgAphWO504iwfJzWmguNP+Bd21o0B34au1DqNKzwFw qyWqrFpeHzUv1LytO12cyDN2hN6rHjzlB1md2VQ2KPm/LgomClwcqbBVyME7BcanNKXb8D yTNvlAvYDHcxHbG85AJscaTmprsubZMG0D/6Fpqt63FIdFD1wvTOszNqSfPIWw== 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=1712841903; 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=6/5Dfz5WPLTNJQT1qsx5dlIDlaZOwetadyX5CEFBrOw=; b=d0m7F3KUkjahanGNWpk7KEyFHeYE04YqM9OclJjIv8FkNISdnB06u+sOWkVus/XnfSDdyp Yfqdgy9U6JN4Z/uMElrJPQNAK0+URCTxQjypZHyfz4dljjkpG5ObXFoP4hI+uhqFeJiiu+ fKyFJ9skbmtSe5G4Ler4eM8/IDHd2kg2BCQFWpei05CPm02YV1ZSywaOrvKKkdb93aFi1K rfJr9ReMfjP2CClMj6wk75z9ibzEBzCdkYLXDVaMaPuloMMyRexB7JHPMOsyVL87iSmMn3 Qfg7OqLHgO00n15z1HZt54/XFkjngKPl/2QIQhkBGuCrGQfQRRv4K2UYsDi32w== 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 4VFgRL5Vdnz1M6D; Thu, 11 Apr 2024 13:25:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43BDP21Z046988; Thu, 11 Apr 2024 13:25:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43BDP2lK046985; Thu, 11 Apr 2024 13:25:02 GMT (envelope-from git) Date: Thu, 11 Apr 2024 13:25:02 GMT Message-Id: <202404111325.43BDP2lK046985@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: 8bca4da5bca3 - stable/14 - pam: Always use pam_xdg for session and xdm 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: Sender: dev-commits-src-all+owner@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 8bca4da5bca3748a5e8a7d0f1d3de36e0e73b6d9 Auto-Submitted: auto-generated The branch stable/14 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=8bca4da5bca3748a5e8a7d0f1d3de36e0e73b6d9 commit 8bca4da5bca3748a5e8a7d0f1d3de36e0e73b6d9 Author: Emmanuel Vadot AuthorDate: 2024-02-22 05:46:08 +0000 Commit: Emmanuel Vadot CommitDate: 2024-04-11 13:24:49 +0000 pam: Always use pam_xdg for session and xdm This ensure that the XDG_RUNTIME_DIR is always created and the environment variable is present which is a must for any wayland user (at least). The only "cost" of it is a directory is created and unused. Reviewed by: des Differential Revision: https://reviews.freebsd.org/D44012 Sponsored by: Beckhoff Automation GmbH & Co. KG (cherry picked from commit 6b9e6f12e5bbfe347dba8ff8e1e161f9180a1edd) --- lib/libpam/pam.d/system | 1 + lib/libpam/pam.d/xdm | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/libpam/pam.d/system b/lib/libpam/pam.d/system index 5ba5567ea9c8..0b5ae5c8fff8 100644 --- a/lib/libpam/pam.d/system +++ b/lib/libpam/pam.d/system @@ -16,6 +16,7 @@ account required pam_unix.so # session #session optional pam_ssh.so want_agent session required pam_lastlog.so no_fail +session required pam_xdg.so # password #password sufficient pam_krb5.so no_warn try_first_pass diff --git a/lib/libpam/pam.d/xdm b/lib/libpam/pam.d/xdm index da4ac9f65c28..7f603ab640fd 100644 --- a/lib/libpam/pam.d/xdm +++ b/lib/libpam/pam.d/xdm @@ -16,6 +16,7 @@ account required pam_unix.so # session #session required pam_ssh.so want_agent session required pam_lastlog.so no_fail +session required pam_xdg.so # password password required pam_deny.so