From: Ulrich Ölmann Date: Mon, 14 Dec 2020 15:02:54 +0000 (+0100) Subject: Add a DirectoryMode to the Emacs Server example X-Git-Tag: emacs-28.0.90~4718 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f6454ad6cd0dba9ab7ebff9b2959c05a607442ed;p=emacs.git Add a DirectoryMode to the Emacs Server example * doc/emacs/misc.texi (Emacs Server): Update example * doc/emacs/misc.texi (Emacs Server): The socket containing directory is per default created with permissions 0755 by the socket-unit. However this is considered unsafe since commit [1], so enhance unit example with systemd configuration directive `DirectoryMode=' to create it with safe permissions, see https://www.freedesktop.org/software/systemd/man/systemd.socket.html#DirectoryMode= [1] 2003-04-12 "(server-socket-name): Use new safe location for socket." Copyright-paperwork-exempt: yes --- diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index c2c382ead0b..54fafae5654 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi @@ -1709,6 +1709,7 @@ connections. A setup to use this functionality could be: @example [Socket] ListenStream=/path/to/.emacs.socket +DirectoryMode=0700 [Install] WantedBy=sockets.target