<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chawan/lib/chaseccomp/gen_syscalls, branch master</title>
<subtitle>Chawan - a web browser for your terminal (mirror)
</subtitle>
<id>https://git.tilde.institute/ahoang/chawan/atom?h=master</id>
<link rel='self' href='https://git.tilde.institute/ahoang/chawan/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/'/>
<updated>2024-11-04T20:08:17Z</updated>
<entry>
<title>chaseccomp: lock down clone; fix mprotect on bionic</title>
<updated>2024-11-04T20:08:17Z</updated>
<author>
<name>bptato</name>
<email>nincsnevem662@gmail.com</email>
</author>
<published>2024-11-04T19:25:26Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/commit/?id=8d22366c3bf67aea31ff746fef56e08944713a13'/>
<id>urn:sha1:8d22366c3bf67aea31ff746fef56e08944713a13</id>
<content type='text'>
* add restrictions on clone for buffer filter
	- hardcoded it for musl, glibc and bionic. hopefully they don't
	  change it too soon...
* remove define directive from gen_syscalls
	- now the arch nr check is hardcoded in gen_defs. makes things a
	  bit less complex.
* fix borked mprotect filter on bionic
	- this completely broke the browser.
</content>
</entry>
<entry>
<title>chaseccomp: revert parts of d9ca197e</title>
<updated>2024-10-31T22:16:44Z</updated>
<author>
<name>bptato</name>
<email>nincsnevem662@gmail.com</email>
</author>
<published>2024-10-31T21:56:29Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/commit/?id=6e1a873be5415a54d77a7202e4a8d1e7211a9f50'/>
<id>urn:sha1:6e1a873be5415a54d77a7202e4a8d1e7211a9f50</id>
<content type='text'>
* abort on network sandbox violation - it's probably better not to, but
  I want to think this through a bit more before changing it for good
  (and then do it consistently, i.e. also for the buffer process.)
* revert case variable quoting - the lack of field splitting is
  specified by POSIX, and the readme states that we target POSIX. no
  need to be paranoid about imaginary shells.
</content>
</entry>
<entry>
<title>chaseccomp: fix compilation with newest dash, misc changes</title>
<updated>2024-10-31T17:38:16Z</updated>
<author>
<name>bptato</name>
<email>nincsnevem662@gmail.com</email>
</author>
<published>2024-10-31T16:44:03Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/commit/?id=d9ca197ed8056c021d4e37ec52aacc6039e24ab7'/>
<id>urn:sha1:d9ca197ed8056c021d4e37ec52aacc6039e24ab7</id>
<content type='text'>
* fix matching on unstripped whitespace: caught after upgrading to
  upstream dash &amp; chaseccomp wouldn't compile
* add defines to ensure that we computed the filter length correctly
* inline cut_label
* EPERM on sigaction, sigprocmask, gettid, and kill on tgkill (so a
  crash doesn't trigger sandbox violations)
* move SIGSYS handler to C and add one for the network

The last change removes the stack trace from SIGSYS, but gives us the
syscall number which is probably more useful. (Indeed, we don't even
have a stack trace in release builds.)
</content>
</entry>
<entry>
<title>sandbox: replace libseccomp with chaseccomp</title>
<updated>2024-10-23T17:08:39Z</updated>
<author>
<name>bptato</name>
<email>nincsnevem662@gmail.com</email>
</author>
<published>2024-10-23T15:35:03Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/commit/?id=5c24b64fe5b242bdba68fe3d48489bed26b48eae'/>
<id>urn:sha1:5c24b64fe5b242bdba68fe3d48489bed26b48eae</id>
<content type='text'>
This drops libseccomp as a dependency.

Also, move the capsicum/pledge definitions from bindings to sandbox.nim
because they are only used there.

Interestingly, after integrating chaseccomp I found that the
stbi process would mysteriously crash by a getrandom(2) syscall.
Closer investigation revealed it is only called on the initialization
of glibc's malloc; presumably it had never surfaced before because
libseccomp would always allocate before entering the sandbox.

So I've added getrandom to our filter as well.
</content>
</entry>
</feed>
