From nobody Mon Feb 26 17:35:59 2024 X-Original-To: dev-commits-src-main@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 4Tk77g3L1bz5Bqhm; Mon, 26 Feb 2024 17:35:59 +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 4Tk77g1l8Pz4fhP; Mon, 26 Feb 2024 17:35:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708968959; 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=G4fI1mvG5x7MAPSoCGmLrAH74Shtjdseh4TSFCJU2eE=; b=RIlvg+k/ErEfQv3WA8pDydTXD7baA5sgrjfAoZo9rn66dea85DweNKNsZOkW8HJKFhlsNF jcFERl/DYmwM9QHiMxH4LAqjg9yQJdsfzdT2TpbNWQKK9f57jU22IxApgCB2S2TOR9qJtf tKQe+N3UobMT1ypgBBjIK9MY0H7JZJoo0ip9D3Cgblt7cZvoReat/f7iIkuIvagba8pP8A PP5EjJMncvAH028l97nxxsHLQ1Wx3WgJ+8qwuc4KADZCK7v/M8jl/39BhWknuFElpOyegj VeEhow3FvGde1aAlSEmUZD7RWAwzmfaZ1XE1y6ivUhcojUwf3/AhWU+7aeowXw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708968959; a=rsa-sha256; cv=none; b=Mz202J+LJ0WehM9gY4SoHos9gj6hLB3te5lN6hbOBQzrSAvyXx+8gIQicyB/HB/u9rnqF4 I6Ew0ctWi7KIu2Ed3WBCuR70HqUvE8F5gHUVpS9jY6w9lrhUZ8rctSUrzno3AEvX1qLyQ6 wuYvNW5/gZqyi29UwK1aA1jv0cjFr7XSoBdtIGoxq7cfWzHnADjg78jLP9CaQOXrhaKQp8 kZdzFIBbEaIeT5G052dYDih/k+uumb+CEpOAP8vRVzYZYa0Ua8iVDrmP0+k7/yOuaX8e3s MzA7Ewt8GUu3NqPBloL8QX+a2eB9DgbgX8RHUVSK1a2Xb5xCNwoEr8tsAKj6qQ== 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=1708968959; 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=G4fI1mvG5x7MAPSoCGmLrAH74Shtjdseh4TSFCJU2eE=; b=E00Vc4anGN6Ol6mOkekqQSfzrmncdvbFDPf6A24SSLpF0EjlDzxVBNkGkwxY1900yTOHi8 bRvEBX8/ypj5HmIU3rk3zAr3VzSr/4IAV6dF+egumKp9Se7N/HvMpoeY+oXjMwKM2iKz4V YJkL5UISqNfYIphYVmSmUjrvp7BKJbLVx09aMG8833mXub2WaQVGNwSJ3AfJd4vHxRq7+5 +vuSK0ia91WimPrXbRJ9W89WKFf3nY28HyCoboe/XkjqcKU1+GURiWt/UcL1t6MRdCloeR Ww8Tk9I2AUwilN74P8yjFn7kCd9zqFeOQynF/tOzBs25xxl4CUR3Ek5UPxaqxQ== 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 4Tk77g0p1yzd7f; Mon, 26 Feb 2024 17:35:59 +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 41QHZxHB028012; Mon, 26 Feb 2024 17:35:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41QHZxjB028009; Mon, 26 Feb 2024 17:35:59 GMT (envelope-from git) Date: Mon, 26 Feb 2024 17:35:59 GMT Message-Id: <202402261735.41QHZxjB028009@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 6b9e6f12e5bb - main - pam: Always use pam_xdg for session and xdm List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 6b9e6f12e5bbfe347dba8ff8e1e161f9180a1edd Auto-Submitted: auto-generated The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=6b9e6f12e5bbfe347dba8ff8e1e161f9180a1edd commit 6b9e6f12e5bbfe347dba8ff8e1e161f9180a1edd Author: Emmanuel Vadot AuthorDate: 2024-02-22 05:46:08 +0000 Commit: Emmanuel Vadot CommitDate: 2024-02-26 17:35:22 +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 --- 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