<div dir="ltr"><div>should you not be using /tmp for that rather that /dev/shm?</div><div><br></div><div>I think /tmp should be set up as a tmpfs and will then not persist across reboots.  /var/tmp is for tmp space that needs to persist across reboots.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 23, 2020 at 2:36 PM Thorsten Glaser <<a href="mailto:tg@mirbsd.de">tg@mirbsd.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Package: elogind<br>
Version: 241.3-1+debian2<br>
Severity: critical<br>
Justification: breaks unrelated software<br>
<br>
I’m using a scheme in which I store ssh-agent and gpg-agent information<br>
across all logins (local X session or ssh or xrdp) under /dev/shm/ since<br>
I needed space that an unprivileged user can use and that doesn’t persist<br>
across reboots.<br>
<br>
Since installing elogind, logging out from SSH sessions then on again<br>
both breaks gpg-agent as well as makes ssh-agent instances multiply and,<br>
thus, lose their loaded keys to the user.<br>
<br>
Tons of searching and debugging eventuall led me, with strace as root on<br>
it, to the culprit: elogind<br>
<br>
lrwxrwxrwx 1 root root 0 Jan 23 20:21 /proc/3061/exe -> /lib/elogind/elogind*<br>
<br>
3061  unlinkat(22, "info2", 0)          = 0<br>
3061  unlinkat(21, ".ssh-2339", AT_REMOVEDIR) = 0<br>
<br>
<br>
Cease that instantly. This breaks unrelated software on the system,<br>
considering that the user’s processes are still running, even if they<br>
logged out from all ssh sessions. In particular, this will also break<br>
software that runs as the user, dæmonised, that uses shared memory.<br>
<br>
If you have to clean up after yourselves, keep a list and track of the<br>
files you created and will later need to delete.<br>
<br>
It might be a good idea to see whether systemd does the same and, if<br>
so, clone this bugreport and assign the clone to them. I’m not running<br>
systemd, so I can’t do that myself easily.<br>
<br>
-- System Information:<br>
Debian Release: bullseye/sid<br>
  APT prefers unreleased<br>
  APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable'), (100, 'experimental')<br>
Architecture: x32 (x86_64)<br>
Foreign Architectures: i386, amd64<br>
<br>
Kernel: Linux 5.4.0-2-amd64 (SMP w/4 CPU cores)<br>
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND<br>
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)<br>
Shell: /bin/sh linked to /bin/lksh<br>
Init: sysvinit (via /sbin/init)<br>
<br>
Versions of packages elogind depends on:<br>
ii  dbus         1.12.16-2<br>
ii  debconf      1.5.73<br>
ii  libacl1      2.2.53-5<br>
ii  libc6        2.29-9<br>
ii  libcap2      1:2.27-1<br>
ii  libelogind0  241.3-1+debian2<br>
ii  libselinux1  3.0-1<br>
ii  libudev1     244-3<br>
ii  lsb-base     11.1.0<br>
<br>
Versions of packages elogind recommends:<br>
ii  libpam-elogind  241.3-1+debian2<br>
ii  policykit-1     0.105-26<br>
<br>
elogind suggests no packages.<br>
<br>
-- no debconf information<br>
</blockquote></div>