[Bug 739221] New: /etc/pam.d/xdm lacks pam_systemd module
https://bugzilla.novell.com/show_bug.cgi?id=739221 https://bugzilla.novell.com/show_bug.cgi?id=739221#c0 Summary: /etc/pam.d/xdm lacks pam_systemd module Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: All OS/Version: SuSE Other Status: NEW Severity: Major Priority: P5 - None Component: X.Org AssignedTo: bnc-team-xorg-bugs@forge.provo.novell.com ReportedBy: javier@conti-menchini.ch QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20100101 Firefox/9.0 In /etc/pam.d/xdm (in openSUSE 12.1) the pam_systemd module is missing by default. systemd-uaccess is used to set ACL on device files in some cases (e.g. when a digital camera is plugged in) and it's not able to get information about the user owning the session (i.e. /run/systemd/seats/seat0 is not updated by PAM), as we can see in the following example: $ cat /run/systemd/seats/seat0 # This is private data. Do not parse. IS_VTCONSOLE=1 Putting the pam_systemd module in /etc/pam.d/xdm as follows: $ cat /etc/pam.d/xdm #%PAM-1.0 auth include common-auth account include common-account password include common-password session required pam_loginuid.so session required pam_systemd.so kill-session-processes=1 session include common-session Makes PAM update the /run/systemd/seats/seat0 correctly, as in the following example: $ cat /run/systemd/seats/seat0 # This is private data. Do not parse. IS_VTCONSOLE=1 ACTIVE=521 ACTIVE_UID=1000 SESSIONS=521 UIDS=1000 And some devices that didn't work because of wrong permissions, start to work. Probably, the case where a user boots with old SysV init should be managed too, but currently without that entry users using systemd may experience problems in using some devices. Reproducible: Always Steps to Reproduce: 1. Plug a device such a digital camera 2. Try using it as the user owning the session (not root) Actual Results: There is an error writing to the device Expected Results: The user owning the session should be able to write to the device (if writing is supported) See OP: http://lists.opensuse.org/opensuse/2011-12/msg01512.html -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739221 https://bugzilla.novell.com/show_bug.cgi?id=739221#c1 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED --- Comment #1 from Stefan Dirsch <sndirsch@suse.com> 2012-01-03 16:49:33 UTC --- Honestly I still have no clue about systemd. Frederic/Werner, does this make sense? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739221 https://bugzilla.novell.com/show_bug.cgi?id=739221#c Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-xorg-bugs@forge.pr |sndirsch@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739221 https://bugzilla.novell.com/show_bug.cgi?id=739221#c Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO CC| |werner@suse.com InfoProvider| |fcrozat@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739221 https://bugzilla.novell.com/show_bug.cgi?id=739221#c2 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED CC| |fcrozat@suse.com InfoProvider|fcrozat@suse.com | --- Comment #2 from Frederic Crozat <fcrozat@suse.com> 2012-01-03 17:11:29 UTC --- pam_systemd is in common-session, so there is no need to include it in xdm pam configuration. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739221 https://bugzilla.novell.com/show_bug.cgi?id=739221#c3 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |fcrozat@suse.com --- Comment #3 from Stefan Dirsch <sndirsch@suse.com> 2012-01-03 17:34:27 UTC --- But then why does it fix the issue? Also I can't find a pam_systemd.so entry in /etc/pam.d/common-session !?! Or what do you mean? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739221 https://bugzilla.novell.com/show_bug.cgi?id=739221#c4 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|fcrozat@suse.com | --- Comment #4 from Frederic Crozat <fcrozat@suse.com> 2012-01-03 17:58:34 UTC --- I can't speak for the reporter. But his bug might be related to bnc#713319 if it is an upgrade. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=739221 https://bugzilla.novell.com/show_bug.cgi?id=739221#c5 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |DUPLICATE --- Comment #5 from Stefan Dirsch <sndirsch@suse.com> 2012-01-03 20:47:37 UTC --- Ok. It seems this pam_systemd.so entry is added somewhat later to the common-session file. It's not included in the file as packaged. Closing as duplicate. *** This bug has been marked as a duplicate of bug 713319 *** http://bugzilla.novell.com/show_bug.cgi?id=713319 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com