Subject: bug#33847: 27.0.50; emacsclient does not find server socket

From: Richard Stallman <[email-masked]>
Date: Wed, 26 Dec 2018 22:38:36 -0500

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Tools like 'screen' that predate XDG_RUNTIME_DIR traditionally suffered from 
  > similar security problems. On my Fedora 29 platform, 'screen' works around the 
  > problem by being setgid 'screen' and putting files under /run/screen/S-eggert, 
  > where /run/screen is mode drwxrwxr-x with owner 'root' and group 'screen'. The 
  > exact location of the /run/screen directory is platform-specific; I guess that 
  > it typically used to be /tmp/screens but got moved due to security concerns.

Is it possible to arrange for each user to have a directory under /run/emacs
which is owned by that user and doesn't give access to anyone else?

Maybe we could release a simple setuid program to create that directory.

-- 
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)