[systemd-devel] login problems

Christian Hesse mail at eworm.de
Mon Apr 29 16:18:19 PDT 2013


Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl> on Tue, 2013/04/30 01:05:
> On Tue, Apr 30, 2013 at 12:03:24AM +0200, Christian Hesse wrote:
> > Hello everybody,
> > 
> > ok, this looks very tricky... I have no idea what happens and I have no
> > way to reproduce this. It just happens from time to time - very seldom.
> > 
> > If this happens I am not able to log in from lxdm and getty. The only way
> > back into the system is getting a failed login from getty, it succeeds
> > after the process has been restarted. From there I can restart lxdm unit.
> > 
> > Looks like lxdm-binary gets 'permission denied' when accessing some file.
> > This is strace from lxdm-binary, grepped for 'EACCES':
> > 
> > open("/etc/pam.d/eworm-yubico-otp", O_RDONLY) = -1 EACCES (Permission
> > denied) open("/var/log/faillog", O_RDWR)        = -1 EACCES (Permission
> > denied) open("/var/log/faillog", O_RDONLY)      = -1 EACCES (Permission
> > denied) open("/dev/bus/usb/001/002", O_RDWR)    = -1 EACCES (Permission
> > denied) open("/etc/shadow", O_RDONLY|O_CLOEXEC) = -1 EACCES (Permission
> > denied)
> > 
> > lxdm-binary is running with user and group 'root' so I do not understand
> > why permissions for other take effect.
> > 
> > This is an Arch Linux system with Linux 3.8.8-1-ARCH and systemd 202-1.
> > Any ideas?
> Are you using selinux, runinng in enforcing mode? How soon after boot,
> and how soon after selinux policy is loaded, does this happen?

No selinux, just the standard Arch kernel.

It happens once a week or even less.
Once I thought this was triggered by dkms unit recompiling kernel modules.
Possibly dkms is a factor, but not the only one.

I suppose there is any kind of race condition involved. This is a fast system
- i7 3rd gen with Crucial SSD.
-- 
Schoene Gruesse
Chris
                         O< ascii ribbon campaign
                   stop html mail - www.asciiribbon.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130430/48496885/attachment.pgp>


More information about the systemd-devel mailing list