Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679954 - sys-auth/elogind: pam integration does not work out of the box
Summary: sys-auth/elogind: pam integration does not work out of the box
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas Sturmlechner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-10 16:44 UTC by Piotr Karbowski (RETIRED)
Modified: 2019-03-11 16:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Karbowski (RETIRED) gentoo-dev 2019-03-10 16:44:49 UTC
It looks like the pam_elogind.so is not being used by default when built with USE=pam, or at least is not used when one login via agetty. I've checked both elogind versions that are currently in portage (239.3 and 238.2), on two systems. Running sys-libs/pam-1.3.1-r1 with sys-auth/pambase-20150213-r2.

elogind installs /etc/pam.d/elogind-user with:
    # This file is part of systemd.
    #
    # Used by systemd --user instances.
    
    account required pam_unix.so
    session required pam_loginuid.so
    session optional pam_keyinit.so force revoke
    session optional pam_elogind.so

Which seems to not be enough to use trigger elogind upon login. Here I had to add `session optional pam_elogind.so` to `/etc/pam.d/system-auth`. After that logging on tty got me elogind running, as well as $XDG_ variables like XDG_SEAT or XDG_SESSION_ID.
Comment 1 Andreas Sturmlechner gentoo-dev 2019-03-10 23:35:41 UTC
(In reply to Piotr Karbowski from comment #0)
> Which seems to not be enough to use trigger elogind upon login. Here I had
> to add `session optional pam_elogind.so` to `/etc/pam.d/system-auth`.

This is already the case if you build sys-auth/pambase with USE=elogind.
Comment 2 Piotr Karbowski (RETIRED) gentoo-dev 2019-03-11 16:38:22 UTC
And here I was sure that I had already updated @world set with USE=elogind. Sorry about that.