Devuan bug report logs - #540
slim fails to get logind session if logout/login cycle is rapid

version graph

Package: slim; Maintainer for slim is Devuan Dev Team <devuan-dev@lists.dyne.org>; Source for slim is src:slim.

Reported by: Frank <fbug@xs4all.nl>

Date: Mon, 18 Jan 2021 20:33:01 UTC

Severity: normal

Fixed in version 1.3.6-5.2+devuan1

Done: dak@devuan.org

Forwarded to https://github.com/elogind/elogind/issues/95

Full log


Message #48 received at 540@bugs.devuan.org (full text, mbox, reply):

Received: (at 540) by bugs.devuan.org; 20 Jan 2021 18:10:02 +0000
Return-Path: <fbug@xs4all.nl>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 20 Jan 2021 18:10:02 +0000 (UTC)
Received: from lb2-smtp-cloud7.xs4all.net (lb2-smtp-cloud7.xs4all.net [194.109.24.28])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 8988FF6087C
	for <540@bugs.devuan.org>; Wed, 20 Jan 2021 19:07:17 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (2048-bit key; secure) header.d=xs4all.nl header.i=@xs4all.nl header.b="nSaZwLzV";
	dkim-atps=neutral
Received: from webmail.xs4all.nl ([IPv6:2001:888:0:22:194:109:20:216])
	by smtp-cloud7.xs4all.net with ESMTPA
	id 2HszlWhoIyutM2HszlfAmN; Wed, 20 Jan 2021 19:07:17 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s2;
	t=1611166037; bh=+ZmGTTAO7I38F5q3RFCBPx6/TX+tDuZKf0Ssg4ZRS9A=;
	h=MIME-Version:Date:From:To:Subject:Message-ID:Content-Type:From:
	 Subject;
	b=nSaZwLzVHawzpa8asgXjl/nONQp2h/uwuS6MysGGFLEx9/hwfl8ASiSU2Q/k3/T1o
	 BpuJ3ne1Bk4UUYCxsX15lX27WTC5o7MmCTtln/IRBISx0OvJvVHh/CM3TXpRgG7lOt
	 5IZ/Msc9EvU3/CJCp3OUWSrikZ9XUip0K6m5hlzhwhO6hbfLy8iNbVLn8G5acUqcdA
	 VkGElboNK5LCmVvz2uyFQJoUsaU4zFjvem7jH9xqSJi6rEXLuSbiWwqgx2+/ByFCre
	 9LCxqWFFnXDsx8Kfn0K+jh9zmPkmoI2w6N15mclEyrIzg7q1eOhrXTGxWRjcsczj71
	 K4w8EgAbyXRiw==
Received: from roothub.nl ([83.68.19.244])
 by webmail.xs4all.nl
 with HTTP (HTTP/1.1 POST); Wed, 20 Jan 2021 19:07:17 +0100
MIME-Version: 1.0
Date: Wed, 20 Jan 2021 19:07:17 +0100
From: Frank <fbug@xs4all.nl>
To: Mark Hindley <mark@hindley.org.uk>
Cc: 540@bugs.devuan.org
Subject: Re: bug#540: elogind unmounts /run/user/$UID tmpfs filesystem after
 logging in again
In-Reply-To: <YAhkQkGH3fTAAHdP@hindley.org.uk>
References: <799226dc9af49ffdf449c54e013032e1@xs4all.nl>
 <YAbC59HtYZjxzfBo@hindley.org.uk>
 <799226dc9af49ffdf449c54e013032e1@xs4all.nl>
 <0d28c7c8b0ca461ef8376eee0c5ec18e@xs4all.nl>
 <YAcjg31ZR9ilODdY@hindley.org.uk>
 <7b2bac156d658c49f638856d445a3b3b@xs4all.nl>
 <85c8573180e595ee5805d973cc6b1cfa@xs4all.nl>
 <YAhkQkGH3fTAAHdP@hindley.org.uk>
Message-ID: <a15165161f13c160ee428ad13b24eb6d@xs4all.nl>
X-Sender: fbug@xs4all.nl
User-Agent: XS4ALL Webmail
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
X-CMAE-Envelope: MS4xfCerq9Bnm2vqEoIE0HHjPKYKGEg9A84+6PxE3iVQDh8H9/uRAfBLmo0Sy58gLJPM0AQvXRrOfWl/TjjjRmeHCcaTDL7pbVyf4p0Uxi4qOHUDFBDKZw58
 TfzB5f/z2ZHC4QBiGhotOXxVldZxZ7ekGpyuOfSERweBPDpFmQB6bsWxql8E8o+CMiW3XPuGm3Y5DHofMyJG8d8aby6z3pkhnNJHvbFVu40vBP/x8BvGS6PU
 BRksQtR8/9AVzd5QdgcLBA==
X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,
	RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
Adding "pam.setenv("XDG_SESSION_CLASS", "greeter");" to app.cpp (line 
560) did not work for me, the environment variable is set, but the class 
(according to cmd "loginctl session-status") is still "user". But, 
adding "export XDG_SESSION_CLASS=greeter" to "/etc/init.d/slim" DID 
work, class became "greeter". Even better. Nice and clean.

Mark Hindley schreef op 2021-01-20 18:11:
> On Wed, Jan 20, 2021 at 04:31:25PM +0100, Frank wrote:
>> Hi Mark,
>> 
>> I played around with the slim PAM configuration and found a possible
>> solution: change the elogind class from "user" to "greeter". Slim does 
>> not
>> fork a helper process so changing it makes sense to me. When a new 
>> session
>> is created, previous sessions close in the background, even if the
>> logout/login cycle is rapid. Looks promising?
> 
> Interesting. I am wondering (from a very quick read of the docs) if we 
> can
> achieve the same by setting XDG_SESSION_CLASS within slim.
> 
> Thanks.
> 
> Mark

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sun Apr 28 15:04:30 2024;