<feed xmlns='http://www.w3.org/2005/Atom'>
<title>snac2/sandbox.c, branch master</title>
<subtitle>Fork of snac2 to test neighborhood #web</subtitle>
<id>https://git.r.bdr.sh/snac2/atom/sandbox.c?h=master</id>
<link rel='self' href='https://git.r.bdr.sh/snac2/atom/sandbox.c?h=master'/>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/snac2/'/>
<updated>2026-02-05T20:17:44Z</updated>
<entry>
<title>strip_exif support for the OpenBSD sandbox</title>
<updated>2026-02-05T20:17:44Z</updated>
<author>
<name>Alvar Penning</name>
<email>post@0x21.biz</email>
</author>
<published>2026-02-05T19:58:25Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/snac2/commit/?id=ea81780895702b08b0b93ff48bd1876330632b89'/>
<id>urn:sha1:ea81780895702b08b0b93ff48bd1876330632b89</id>
<content type='text'>
Change the strip_exif logic to work with the already existing OpenBSD
sandbox and allow ffmpeg and mogrify to be executed.

The previous strip_exif implementation relied on system(3), effectively
starting "/bin/sh" and executing the required tool within a shell
session. Making this work in the sandbox would require to allow
executing "/bin/sh", rendering the sandbox useless.

Thus, the code now starts determining the absolute path of the tools -
unless they are given as ffmpeg_path or mogrify_path - and allowing them
to be executed via unveil(2). Then, instead of the system(3) call, the
good old fork(2) and execve(2) dance is performed.

The sbox_enter code was made aware of strip_exif, which resulted in a
pledge(2) violation before when disable_email_notifications was set to
false. Furthermore, the detected paths of the tools are now allowed.
</content>
</entry>
<entry>
<title>Minor tweak.</title>
<updated>2025-06-04T04:38:44Z</updated>
<author>
<name>grunfink</name>
<email>grunfink@comam.es</email>
</author>
<published>2025-06-04T04:38:44Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/snac2/commit/?id=f0509f8b2b8df704226a94e9af8c06c3065234d4'/>
<id>urn:sha1:f0509f8b2b8df704226a94e9af8c06c3065234d4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't enable unveil() and pledge() for sendmail spawn if "smtp_url" is set.</title>
<updated>2025-06-04T04:35:39Z</updated>
<author>
<name>grunfink</name>
<email>grunfink@comam.es</email>
</author>
<published>2025-06-04T04:35:39Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/snac2/commit/?id=c2cac572e9e51fc91296e0aa86ed3e165a75dd2d'/>
<id>urn:sha1:c2cac572e9e51fc91296e0aa86ed3e165a75dd2d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed regression while sending email via pipe on OpenBSD.</title>
<updated>2025-06-03T01:31:31Z</updated>
<author>
<name>grunfink</name>
<email>grunfink@comam.es</email>
</author>
<published>2025-06-03T01:31:31Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/snac2/commit/?id=89c1a4a94b1032aed3af293c0f04d7a8f058ccda'/>
<id>urn:sha1:89c1a4a94b1032aed3af293c0f04d7a8f058ccda</id>
<content type='text'>
</content>
</entry>
<entry>
<title>allow sandbox to work with changed config values</title>
<updated>2025-04-29T21:42:34Z</updated>
<author>
<name>shtrophic</name>
<email>christoph@liebender.dev</email>
</author>
<published>2025-04-29T21:31:04Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/snac2/commit/?id=b7320f580d5cc83a120eb5eff720bfb9331dace3'/>
<id>urn:sha1:b7320f580d5cc83a120eb5eff720bfb9331dace3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'upstream/master' into curl-smtp</title>
<updated>2025-01-24T19:38:26Z</updated>
<author>
<name>shtrophic</name>
<email>christoph@liebender.dev</email>
</author>
<published>2025-01-24T19:38:26Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/snac2/commit/?id=85be7f36e12507cff7607df22ca14f8bfc00f6e2'/>
<id>urn:sha1:85be7f36e12507cff7607df22ca14f8bfc00f6e2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Sandbox fixes</title>
<updated>2025-01-23T19:15:23Z</updated>
<author>
<name>shtrophic</name>
<email>christoph@liebender.dev</email>
</author>
<published>2025-01-23T19:15:23Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/snac2/commit/?id=cc1d4258e5dea493605c3f09b8279e28dd61e727'/>
<id>urn:sha1:cc1d4258e5dea493605c3f09b8279e28dd61e727</id>
<content type='text'>
- allow reading `/dev/urandom` as it is shown as a failed syscall when
  tracing
- resolve `/etc/ssl/cert.pem` in case it is a symlink
</content>
</entry>
<entry>
<title>add port parsing for sandboxing</title>
<updated>2025-01-20T21:59:30Z</updated>
<author>
<name>shtrophic</name>
<email>christoph@liebender.dev</email>
</author>
<published>2025-01-20T21:59:30Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/snac2/commit/?id=4c1a2d24d374d00c656c4489db7d28f80d64f9dc'/>
<id>urn:sha1:4c1a2d24d374d00c656c4489db7d28f80d64f9dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't fail Linux sandboxing if /usr/sbin/sendmail does not exist.</title>
<updated>2025-01-06T14:35:18Z</updated>
<author>
<name>default</name>
<email>nobody@localhost</email>
</author>
<published>2025-01-06T14:35:18Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/snac2/commit/?id=51f3f49ba0587311306eeca458a2dc67a12a2d49'/>
<id>urn:sha1:51f3f49ba0587311306eeca458a2dc67a12a2d49</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Minor rework to sandbox code.</title>
<updated>2025-01-06T14:22:13Z</updated>
<author>
<name>default</name>
<email>nobody@localhost</email>
</author>
<published>2025-01-06T14:22:13Z</published>
<link rel='alternate' type='text/html' href='https://git.r.bdr.sh/snac2/commit/?id=f1295a471fcf2ff351de3001e92c6190c5f7439e'/>
<id>urn:sha1:f1295a471fcf2ff351de3001e92c6190c5f7439e</id>
<content type='text'>
</content>
</entry>
</feed>
