diff options
author | Ulrich Ölmann <u.oelmann@pengutronix.de> | 2020-12-14 16:02:54 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-12-14 16:02:54 +0100 |
commit | f6454ad6cd0dba9ab7ebff9b2959c05a607442ed (patch) | |
tree | 4471f30adb9037df68bbdc4c31efc9bb76dbb181 /doc/emacs/misc.texi | |
parent | e8a358c3be90949645a1038cfd43553794c49441 (diff) | |
download | emacs-f6454ad6cd0dba9ab7ebff9b2959c05a607442ed.tar.gz |
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
Diffstat (limited to 'doc/emacs/misc.texi')
-rw-r--r-- | doc/emacs/misc.texi | 1 |
1 files changed, 1 insertions, 0 deletions
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 |