<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/lib-src, branch feature/native-comp</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>Fix Seccomp filter on CentOS 8.3 (Bug#47828).</title>
<updated>2021-04-18T08:34:48+00:00</updated>
<author>
<name>Philipp Stephani</name>
</author>
<published>2021-04-18T08:33:41+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=2822246b5d8154d0166e17ffd28a1d85b57d68aa'/>
<id>2822246b5d8154d0166e17ffd28a1d85b57d68aa</id>
<content type='text'>
* lib-src/seccomp-filter.c (main): mmap: Also allow MAP_SHARED.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lib-src/seccomp-filter.c (main): mmap: Also allow MAP_SHARED.
</pre>
</div>
</content>
</entry>
<entry>
<title>* lib-src/seccomp-filter.c: Add missing headers.</title>
<updated>2021-04-12T07:20:51+00:00</updated>
<author>
<name>Philipp Stephani</name>
</author>
<published>2021-04-12T07:20:51+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=104c5e3d57705cd4bd291b61d7f165def602ab5c'/>
<id>104c5e3d57705cd4bd291b61d7f165def602ab5c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Generate Seccomp filters only if we have the necessary constants.</title>
<updated>2021-04-12T07:15:59+00:00</updated>
<author>
<name>Philipp Stephani</name>
</author>
<published>2021-04-12T07:15:59+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=17d20bb3cbb233ed0d94c3f1f9f3db768f526223'/>
<id>17d20bb3cbb233ed0d94c3f1f9f3db768f526223</id>
<content type='text'>
If we're missing SECCOMP_SET_MODE_FILTER, the seccomp-filter build
fails.  Reuse the existing HAVE_SECCOMP configuration variable, which
checks for these macros.

* configure.ac (HAVE_SECCOMP): Substitute in Makefile.in.
* lib-src/Makefile.in (HAVE_SECCOMP): New variable.
(SECCOMP_FILTER): Define only if HAVE_SECCOMP.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we're missing SECCOMP_SET_MODE_FILTER, the seccomp-filter build
fails.  Reuse the existing HAVE_SECCOMP configuration variable, which
checks for these macros.

* configure.ac (HAVE_SECCOMP): Substitute in Makefile.in.
* lib-src/Makefile.in (HAVE_SECCOMP): New variable.
(SECCOMP_FILTER): Define only if HAVE_SECCOMP.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a variant of the Seccomp filter file that allows 'execve'.</title>
<updated>2021-04-11T19:19:09+00:00</updated>
<author>
<name>Philipp Stephani</name>
</author>
<published>2021-04-11T17:47:36+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=c8d542fd593f06b85d4b7b712378a4f84ec4d2b3'/>
<id>c8d542fd593f06b85d4b7b712378a4f84ec4d2b3</id>
<content type='text'>
This is useful when starting Emacs with a Seccomp filter enabled,
e.g. using 'bwrap'.

* lib-src/seccomp-filter.c (main): Generate new Seccomp files.

* lib-src/Makefile.in (all)
(seccomp-filter.bpf seccomp-filter.pfc seccomp-filter-exec.bpf
seccomp-filter-exec.pfc): Generate new Seccomp files.

* .gitignore: Ignore new Seccomp files.

* test/src/emacs-tests.el (emacs-tests/bwrap/allows-stdout): New unit
test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is useful when starting Emacs with a Seccomp filter enabled,
e.g. using 'bwrap'.

* lib-src/seccomp-filter.c (main): Generate new Seccomp files.

* lib-src/Makefile.in (all)
(seccomp-filter.bpf seccomp-filter.pfc seccomp-filter-exec.bpf
seccomp-filter-exec.pfc): Generate new Seccomp files.

* .gitignore: Ignore new Seccomp files.

* test/src/emacs-tests.el (emacs-tests/bwrap/allows-stdout): New unit
test.
</pre>
</div>
</content>
</entry>
<entry>
<title>* lib-src/seccomp-filter.c (main): Also allow O_NOFOLLOW.</title>
<updated>2021-04-11T19:14:41+00:00</updated>
<author>
<name>Philipp Stephani</name>
</author>
<published>2021-04-11T19:14:09+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=cf0701eff0f3b06e0324be07f7810cbaf261f7f3'/>
<id>cf0701eff0f3b06e0324be07f7810cbaf261f7f3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't attempt to generate Seccomp filter file in Linux &lt; 4.14.</title>
<updated>2021-04-11T18:46:59+00:00</updated>
<author>
<name>Philipp Stephani</name>
</author>
<published>2021-04-11T17:35:39+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=9a57897ea1a125782ff332814d3f978c38162cf8'/>
<id>9a57897ea1a125782ff332814d3f978c38162cf8</id>
<content type='text'>
Only Linux 4.14 and later contain the required support for
SECCOMP_RET_KILL_PROCESS.

* lib-src/Makefile.in (SECCOMP_FILTER): Define only if we run at least
Linux 4.14.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only Linux 4.14 and later contain the required support for
SECCOMP_RET_KILL_PROCESS.

* lib-src/Makefile.in (SECCOMP_FILTER): Define only if we run at least
Linux 4.14.
</pre>
</div>
</content>
</entry>
<entry>
<title>Seccomp filter: allow reading the current time (Bug#47708).</title>
<updated>2021-04-11T17:50:45+00:00</updated>
<author>
<name>Philipp Stephani</name>
</author>
<published>2021-04-11T17:42:44+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=ea5ea09244b762008bba509d8c58bad5835fb949'/>
<id>ea5ea09244b762008bba509d8c58bad5835fb949</id>
<content type='text'>
* lib-src/seccomp-filter.c (main): Allow reading the current time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lib-src/seccomp-filter.c (main): Allow reading the current time.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use pkg-config to check for libseccomp.</title>
<updated>2021-04-11T14:50:29+00:00</updated>
<author>
<name>Philipp Stephani</name>
</author>
<published>2021-04-11T14:50:29+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=725fc96b706c57ef8ceca5e7d82b175d9a72e845'/>
<id>725fc96b706c57ef8ceca5e7d82b175d9a72e845</id>
<content type='text'>
We need at list version 2.4.0 of libseccomp for seccomp-filter.c to
build cleanly.

* configure.ac: Use pkg-config to check for libseccomp.
* lib-src/Makefile.in (HAVE_LIBSECCOMP, LIBSECCOMP_LIBS)
(LIBSECCOMP_CFLAGS): New variables.
(SECCOMP_FILTER, seccomp-filter$(EXEEXT)): Use them.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need at list version 2.4.0 of libseccomp for seccomp-filter.c to
build cleanly.

* configure.ac: Use pkg-config to check for libseccomp.
* lib-src/Makefile.in (HAVE_LIBSECCOMP, LIBSECCOMP_LIBS)
(LIBSECCOMP_CFLAGS): New variables.
(SECCOMP_FILTER, seccomp-filter$(EXEEXT)): Use them.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove SCMP_FLTATR_CTL_LOG attribute from Seccomp filter.</title>
<updated>2021-04-11T14:41:44+00:00</updated>
<author>
<name>Philipp Stephani</name>
</author>
<published>2021-04-11T14:41:44+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=d06c54db1b3504caed8673216a72b117d0692351'/>
<id>d06c54db1b3504caed8673216a72b117d0692351</id>
<content type='text'>
Whether or not we log failing syscalls isn't security-critical, and we
shouldn't care.

* lib-src/seccomp-filter.c (main): Remove log attribute.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Whether or not we log failing syscalls isn't security-critical, and we
shouldn't care.

* lib-src/seccomp-filter.c (main): Remove log attribute.
</pre>
</div>
</content>
</entry>
<entry>
<title>Only attempt to generate seccomp filter files on x86-64 systems.</title>
<updated>2021-04-11T14:25:09+00:00</updated>
<author>
<name>Philipp Stephani</name>
</author>
<published>2021-04-11T14:22:54+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=9dc26d4a8add5b3f2a5fce7907af4f9673ae82c0'/>
<id>9dc26d4a8add5b3f2a5fce7907af4f9673ae82c0</id>
<content type='text'>
The seccomp filters are always architecture-specific, and
seccomp-filter.c right now only supports x86-64.

* lib-src/Makefile.in (SECCOMP_FILTER): New variable.
(DONT_INSTALL, all, seccomp-filter$(EXEEXT)): Use it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The seccomp filters are always architecture-specific, and
seccomp-filter.c right now only supports x86-64.

* lib-src/Makefile.in (SECCOMP_FILTER): New variable.
(DONT_INSTALL, all, seccomp-filter$(EXEEXT)): Use it.
</pre>
</div>
</content>
</entry>
</feed>
