]> git.eshelyaron.com Git - emacs.git/commitdiff
Add a DirectoryMode to the Emacs Server example
authorUlrich Ölmann <u.oelmann@pengutronix.de>
Mon, 14 Dec 2020 15:02:54 +0000 (16:02 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 14 Dec 2020 15:02:54 +0000 (16:02 +0100)
* 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

doc/emacs/misc.texi

index c2c382ead0bc97eb42e3fa030306ba0be96551ca..54fafae56540daaf79ec54a178b9d44ee375b19e 100644 (file)
@@ -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