chiark / gitweb /
PAM, uaccess: check for logind, not for systemd
authorMartin Pitt <martinpitt@gnome.org>
Tue, 26 Mar 2013 10:36:31 +0000 (11:36 +0100)
committerMartin Pitt <martinpitt@gnome.org>
Fri, 5 Apr 2013 16:16:58 +0000 (18:16 +0200)
commit79d860fe78ff9e53fe3150fb55a8a8b03c4f6470
tree1905740de9ce74a2006ee23dda5549c0efd81a34
parent9e542e0b3a5069f340072c93b5d2283848a42a2e
PAM, uaccess: check for logind, not for systemd

It is possible to build systemd without logind or run logind without systemd
init. Commit 66e41181 fixed sd_booted() to only succeed for systemd init; with
that, testing for systemd init is wrong in the parts that talk to logind.

In particular, this affects the PAM module and the "uaccess" udev builtin.
Change sd_booted() to a new logind_running() which tests for
/run/systemd/seats/.

For details, see:
<https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html>

https://bugs.freedesktop.org/show_bug.cgi?id=62754
src/login/pam-module.c
src/shared/util.h
src/udev/udev-builtin-uaccess.c