]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemd-user: move pam snippet default location to /usr/lib/pam.d
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Sep 2020 16:55:35 +0000 (18:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Sep 2020 10:47:07 +0000 (12:47 +0200)
NEWS
meson.build

diff --git a/NEWS b/NEWS
index 6fc5815293b833602508ca36ebc6a31a3f452b54..e2e6ebe5283d0e48331773088e5d96a06207e77f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -85,6 +85,22 @@ CHANGES WITH 247 in spe:
           this is not caused by systemd/udev changes, but result of a kernel
           behaviour change.
 
+        * Since PAM 1.2.0 (2015) configuration snippets may be placed in
+          /usr/lib/pam.d/ in addition to /etc/pam.d/. If a file exists in the
+          latter it takes precedence over the former, similar to how most of
+          systemd's own configuration is handled. Given that PAM stack
+          definitions are primarily put together by OS vendors/distributions
+          (though possibly overriden by users), this systemd release moves its
+          own PAM stack configuration for the "systemd-user" PAM service (i.e.
+          for the PAM session invoked by the per-user user@.service instance)
+          from /etc/pam.d/ to /usr/lib/pam.d/. We recommend moving all
+          packages' vendor versions of their PAM stack definitions from
+          /etc/pam.d/ to /usr/lib/pam.d/, but if such OS-wide migration is not
+          desired the location to which systemd installs its PAM stack
+          configuration file may be changed via the "pamconfdir" meson variable
+          at build time, optionally undoing ths change of default paths
+          introduced with systemd 247.
+
 CHANGES WITH 246:
 
         * The service manager gained basic support for cgroup v2 freezer. Units
index ab0d7da1e961aae64a539c4c4926738e2d7304bf..dc4e6e23c3170b1474a6720a137f3167da2d79b5 100644 (file)
@@ -201,7 +201,7 @@ endif
 
 pamconfdir = get_option('pamconfdir')
 if pamconfdir == ''
-        pamconfdir = join_paths(sysconfdir, 'pam.d')
+        pamconfdir = join_paths(prefixdir, 'lib/pam.d')
 endif
 
 memory_accounting_default = get_option('memory-accounting-default')