From: Xi Ruoyao Date: Sun, 12 May 2019 06:22:11 +0000 (+0800) Subject: tmpfiles: do not create /run/nologin if PAM is disabled X-Git-Tag: v243-rc1~448 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a45ef5070d5875d70e39fc430e82eb26c221ded5;p=thirdparty%2Fsystemd.git tmpfiles: do not create /run/nologin if PAM is disabled If systemd is not built with PAM support, systemd-user-sessions.service won't be built. On systems without PAM, /run/nologin is useless. On systems with PAM but systemd is not built with PAM, /run/nologin won't be removed and all unprivileged users can't login. So, we should not create /run/nologin if systemd is built without PAM. --- diff --git a/tmpfiles.d/meson.build b/tmpfiles.d/meson.build index b94a9d0f477..f14b4fc6dff 100644 --- a/tmpfiles.d/meson.build +++ b/tmpfiles.d/meson.build @@ -4,7 +4,7 @@ enable_tmpfiles = conf.get('ENABLE_TMPFILES') == 1 tmpfiles = [['home.conf', ''], ['journal-nocow.conf', ''], - ['systemd-nologin.conf', ''], + ['systemd-nologin.conf', 'HAVE_PAM'], ['systemd-nspawn.conf', 'ENABLE_MACHINED'], ['systemd-tmp.conf', ''], ['portables.conf', 'ENABLE_PORTABLED'],