<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/admin, branch scratch/so-long</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>Redo emacsclient socket symlink-attack checking</title>
<updated>2021-07-23T11:33:37+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2021-07-23T11:33:21+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=007744dd0404d6febca88b00c22981cc630fb8c0'/>
<id>007744dd0404d6febca88b00c22981cc630fb8c0</id>
<content type='text'>
* admin/merge-gnulib (GNULIB_MODULES): Add file-has-acl.
* lib/file-has-acl.c: New file, copied from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib-src/emacsclient.c: Include acl.h, for file_has_acl.
(O_PATH): Default to O_SEARCH, which is good enough here.
(union local_sockaddr): New type.
(socket_status): Remove, replacing with ...
(connect_socket): New function.  All callers changed.
This function checks for ownership and permissions issues with the
parent directory of the socket file, instead of checking the
owner of the socket (which does not help security).
(socknamesize): Move to file scope.
(local_sockname): New arg S.  No need to pass socknamesize.
UID arg is now uid_t.  All callers changed.  Get file descriptor
of parent directory of socket, to foil some symlink attacks.
Do not follow symlinks to that directory.
(set_local_socket): Create the socket here instead of on
each attempt to connect it.  Fall back from XDG_RUNTIME_DIR
to /tmp only if the former fails due to ENOENT.  Adjust
permission-failure diagnostic to match changed behavior.

This addresses Bug#33847, which complained about emacsclient in a
safer XDG environment not connecting to an Emacs server running in
a less-safe enviroment outside XDG.  The patch fixes a
longstanding issue with emacsclient permission checking.
It’s ineffective to look at the permission of the socket file
itself; on some platforms, these permissions are ignored anyway.
What matters are the permissions on the parent directory of the
socket file, as these are what make symlink attacks possible.
Change the permissions check accordingly, and also refuse to
follow symlinks to that parent directory.  These changes make it
OK for emacsclient to fall back from XDG_RUNTIME_DIR to the
traditionally less-safe /tmp/emacsNNNN directories, since /tmp is
universally sticky nowadays.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* admin/merge-gnulib (GNULIB_MODULES): Add file-has-acl.
* lib/file-has-acl.c: New file, copied from Gnulib.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib-src/emacsclient.c: Include acl.h, for file_has_acl.
(O_PATH): Default to O_SEARCH, which is good enough here.
(union local_sockaddr): New type.
(socket_status): Remove, replacing with ...
(connect_socket): New function.  All callers changed.
This function checks for ownership and permissions issues with the
parent directory of the socket file, instead of checking the
owner of the socket (which does not help security).
(socknamesize): Move to file scope.
(local_sockname): New arg S.  No need to pass socknamesize.
UID arg is now uid_t.  All callers changed.  Get file descriptor
of parent directory of socket, to foil some symlink attacks.
Do not follow symlinks to that directory.
(set_local_socket): Create the socket here instead of on
each attempt to connect it.  Fall back from XDG_RUNTIME_DIR
to /tmp only if the former fails due to ENOENT.  Adjust
permission-failure diagnostic to match changed behavior.

This addresses Bug#33847, which complained about emacsclient in a
safer XDG environment not connecting to an Emacs server running in
a less-safe enviroment outside XDG.  The patch fixes a
longstanding issue with emacsclient permission checking.
It’s ineffective to look at the permission of the socket file
itself; on some platforms, these permissions are ignored anyway.
What matters are the permissions on the parent directory of the
socket file, as these are what make symlink attacks possible.
Change the permissions check accordingly, and also refuse to
follow symlinks to that parent directory.  These changes make it
OK for emacsclient to fall back from XDG_RUNTIME_DIR to the
traditionally less-safe /tmp/emacsNNNN directories, since /tmp is
universally sticky nowadays.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix previous admin/emake change</title>
<updated>2021-05-28T01:04:57+00:00</updated>
<author>
<name>Lars Ingebrigtsen</name>
</author>
<published>2021-05-28T01:04:57+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=fa7993e9a0185b1d1347c6654893a8f5348f7ad8'/>
<id>fa7993e9a0185b1d1347c6654893a8f5348f7ad8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Adjust admin/emake filters</title>
<updated>2021-05-28T01:04:12+00:00</updated>
<author>
<name>Lars Ingebrigtsen</name>
</author>
<published>2021-05-28T01:04:12+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=8c529efe47179b62ce16bf9b12a58af33319bc7c'/>
<id>8c529efe47179b62ce16bf9b12a58af33319bc7c</id>
<content type='text'>
Recent changes have made etc/doc always be regenerated, so it's no
longer interesting.  And all "git pull"s will make

  INFO     Scraping files for cal-loaddefs.el...
  INFO     Scraping files for cal-loaddefs.el...done

etc be output, so filter them, too.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Recent changes have made etc/doc always be regenerated, so it's no
longer interesting.  And all "git pull"s will make

  INFO     Scraping files for cal-loaddefs.el...
  INFO     Scraping files for cal-loaddefs.el...done

etc be output, so filter them, too.
</pre>
</div>
</content>
</entry>
<entry>
<title>; * admin/notes/years: Mention that etags test files need to be updated.</title>
<updated>2021-05-17T16:33:40+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2021-05-17T16:33:40+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=78156292c5a8590fd2806b22b9ed21f764125ad2'/>
<id>78156292c5a8590fd2806b22b9ed21f764125ad2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Base the "extraclean" Make rule on "maintainer-clean"</title>
<updated>2021-05-10T01:14:12+00:00</updated>
<author>
<name>Glenn Morris</name>
</author>
<published>2021-05-10T01:14:12+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=305e4807a42075dca2447c82499cbc2584700fe2'/>
<id>305e4807a42075dca2447c82499cbc2584700fe2</id>
<content type='text'>
* Makefile.in (FIND_DELETE): New, set by configure.
(extraclean_dirs): Remove.
(extraclean): Make it just a small variation on maintainer-clean.
* admin/charsets/Makefile.in (extraclean):
* admin/grammars/Makefile.in (extraclean):
* admin/unidata/Makefile.in (extraclean):
* leim/Makefile.in (extraclean):
* lib-src/Makefile.in (extraclean):
* lisp/Makefile.in (extraclean):
* lwlib/Makefile.in (extraclean):
* nt/Makefile.in (extraclean):
* src/Makefile.in (extraclean): Remove target.
* lib/Makefile.in (extraclean): Merge into maintainer-clean.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Makefile.in (FIND_DELETE): New, set by configure.
(extraclean_dirs): Remove.
(extraclean): Make it just a small variation on maintainer-clean.
* admin/charsets/Makefile.in (extraclean):
* admin/grammars/Makefile.in (extraclean):
* admin/unidata/Makefile.in (extraclean):
* leim/Makefile.in (extraclean):
* lib-src/Makefile.in (extraclean):
* lisp/Makefile.in (extraclean):
* lwlib/Makefile.in (extraclean):
* nt/Makefile.in (extraclean):
* src/Makefile.in (extraclean): Remove target.
* lib/Makefile.in (extraclean): Merge into maintainer-clean.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge from origin/emacs-27</title>
<updated>2021-05-04T14:50:25+00:00</updated>
<author>
<name>Glenn Morris</name>
</author>
<published>2021-05-04T14:50:25+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=6a030deb3d5213d0b32a4d2d6b6e7839ce85b5fa'/>
<id>6a030deb3d5213d0b32a4d2d6b6e7839ce85b5fa</id>
<content type='text'>
101a049f55 Improve doc string of 'tab-width'.
43c154404e * lisp/emacs-lisp/elp.el: Doc fixes.
1984213f62 * lisp/emacs-lisp/pp.el: Doc fixes.
6486c9dc73 * admin/make-tarball.txt: Note to update more files on web...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
101a049f55 Improve doc string of 'tab-width'.
43c154404e * lisp/emacs-lisp/elp.el: Doc fixes.
1984213f62 * lisp/emacs-lisp/pp.el: Doc fixes.
6486c9dc73 * admin/make-tarball.txt: Note to update more files on web...
</pre>
</div>
</content>
</entry>
<entry>
<title>Tweak filtering some more</title>
<updated>2021-05-02T08:41:56+00:00</updated>
<author>
<name>Lars Ingebrigtsen</name>
</author>
<published>2021-05-02T08:41:49+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=51a9ed843f122e66bb14997837088af905933f1b'/>
<id>51a9ed843f122e66bb14997837088af905933f1b</id>
<content type='text'>
This should get the ./temacs continuation lines right.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This should get the ./temacs continuation lines right.
</pre>
</div>
</content>
</entry>
<entry>
<title>* admin/make-tarball.txt: Note to update more files on web page.</title>
<updated>2021-04-28T13:23:43+00:00</updated>
<author>
<name>Stefan Kangas</name>
</author>
<published>2021-04-28T13:22:11+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=6486c9dc73fed37028836abb0afbab2d604473ca'/>
<id>6486c9dc73fed37028836abb0afbab2d604473ca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix previous emake adjustment</title>
<updated>2021-04-26T18:51:52+00:00</updated>
<author>
<name>Lars Ingebrigtsen</name>
</author>
<published>2021-04-25T19:11:48+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=a139f14c05cefa229d4dea1104af26fa66c213b2'/>
<id>a139f14c05cefa229d4dea1104af26fa66c213b2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Adjust regexp to extra native-comp lines</title>
<updated>2021-04-25T18:36:01+00:00</updated>
<author>
<name>Lars Ingebrigtsen</name>
</author>
<published>2021-04-25T18:36:01+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=2a33fc8d19973d6fa8ccd37a4203fae99c214893'/>
<id>2a33fc8d19973d6fa8ccd37a4203fae99c214893</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
