<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/libexec/spamd/spamd.c, branch jd/simplify-queueing</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/libexec/spamd/spamd.c?h=jd%2Fsimplify-queueing</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/libexec/spamd/spamd.c?h=jd%2Fsimplify-queueing'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-08-06T13:34:36Z</updated>
<entry>
<title>By now we are already confident that pledge(2) "just works(tm)" and that it can</title>
<updated>2019-08-06T13:34:36Z</updated>
<author>
<name>mestre</name>
<email>mestre@openbsd.org</email>
</author>
<published>2019-08-06T13:34:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0256fee778570faca198e11b52d837cd2a1b1fa1'/>
<id>urn:sha1:0256fee778570faca198e11b52d837cd2a1b1fa1</id>
<content type='text'>
be used to effectively remove filesystem access.

That being said, in spamd(8) when I pledge(2)d it the main priv process got
"stdio inet" which means there's no fs access at all so calling
chroot(2)/chdir(2) here doesn't get us any additional protection. Just remove
them.

OK deraadt@ and no objections from schwarze@
</content>
</entry>
<entry>
<title>More "explicitely" -&gt; "explicitly" in various comments.</title>
<updated>2018-10-22T17:31:24Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2018-10-22T17:31:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c43131ad7f420c8af6cee2cdfbcd3f96b0d6e971'/>
<id>urn:sha1:c43131ad7f420c8af6cee2cdfbcd3f96b0d6e971</id>
<content type='text'>
ok guenther@ tb@ deraadt@
</content>
</entry>
<entry>
<title>nuke trailing whitespace</title>
<updated>2018-04-26T08:57:07Z</updated>
<author>
<name>beck</name>
<email>beck@openbsd.org</email>
</author>
<published>2018-04-26T08:57:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=673dbe7e918575ddfb992896dc67910cf5b87716'/>
<id>urn:sha1:673dbe7e918575ddfb992896dc67910cf5b87716</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make blacklist entries override the whitelist.  When running spamd</title>
<updated>2017-10-18T17:31:01Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2017-10-18T17:31:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=66baed91cf18d6f3802b9f268dbe4a071dfc25e8'/>
<id>urn:sha1:66baed91cf18d6f3802b9f268dbe4a071dfc25e8</id>
<content type='text'>
in greylisting mode, it is not uncommon for an IP to get whitelisted
before it shows up on a spam blacklist.  With this change, spamd
will check its blacklists before adding a WHITE entry to the
&lt;spamd-white&gt; pf table.  If the IP matches a blacklist, the WHITE
entry will be removed.  OK phessler@
</content>
</entry>
<entry>
<title>Check for asprintf() returning -1 instead of assuming that the</title>
<updated>2017-10-12T16:22:33Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2017-10-12T16:22:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=962d6bb7f5ae606b36f26827283040b304622372'/>
<id>urn:sha1:962d6bb7f5ae606b36f26827283040b304622372</id>
<content type='text'>
pointer will remain unchanged when fails.  OK deraadt@
</content>
</entry>
<entry>
<title>fix missing \ on \n, spotted by Edgar Pettijohn</title>
<updated>2017-04-06T15:30:12Z</updated>
<author>
<name>beck</name>
<email>beck@openbsd.org</email>
</author>
<published>2017-04-06T15:30:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=578e5470bac2afadc526c9b8e46464d9b80bed3d'/>
<id>urn:sha1:578e5470bac2afadc526c9b8e46464d9b80bed3d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>check EAGAIN in the correct place,</title>
<updated>2017-01-23T09:21:04Z</updated>
<author>
<name>beck</name>
<email>beck@openbsd.org</email>
</author>
<published>2017-01-23T09:21:04Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2b4c1c4cd5e39e69728e03b832d34286bfaf6f68'/>
<id>urn:sha1:2b4c1c4cd5e39e69728e03b832d34286bfaf6f68</id>
<content type='text'>
noticed and ok phessler@
</content>
</entry>
<entry>
<title>Switch spamd to nonblocking descriptors so we can count on getting a</title>
<updated>2017-01-23T09:09:15Z</updated>
<author>
<name>beck</name>
<email>beck@openbsd.org</email>
</author>
<published>2017-01-23T09:09:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4d78e8aeee81b43e0cba56e79a3ef7b5b8e2e20f'/>
<id>urn:sha1:4d78e8aeee81b43e0cba56e79a3ef7b5b8e2e20f</id>
<content type='text'>
short write when the socket buffers are full, instead of blocking.
ok benno@ claudio@
</content>
</entry>
<entry>
<title>- spamd(8)'s -l accepts an IP address as argument to bind(2) and it calls</title>
<updated>2017-01-17T23:28:04Z</updated>
<author>
<name>mestre</name>
<email>mestre@openbsd.org</email>
</author>
<published>2017-01-17T23:28:04Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=69eddaa6a539f373dc5bc0236663fcbd911c0de8'/>
<id>urn:sha1:69eddaa6a539f373dc5bc0236663fcbd911c0de8</id>
<content type='text'>
inet_pton(3) to check if it's valid and since that function doesn't provide
a proper errno (POSIX doesn't mandate to do so) then if a string is given we
may get this message:
spamd: inet_pton: Undefined error: 0

- Instead replace that code to use getaddrinfo(3) from which is possible to get
a proper error message, and at the same time being able to parse IPs and
hostnames (if either the IP or host is not local then the next bind(2) will
fail)

- By default without arguments, spamd(8) will still bind(2) to 127.0.0.1 as
it did before

With feedback from deraadt@ and OK beck@
</content>
</entry>
<entry>
<title>Check return value of tls_config_set_protocols(3) and bail out in case of</title>
<updated>2016-11-30T07:54:36Z</updated>
<author>
<name>mestre</name>
<email>mestre@openbsd.org</email>
</author>
<published>2016-11-30T07:54:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4ddf1c20b8b5b1e421aa37b93aa97231cfd8a6a9'/>
<id>urn:sha1:4ddf1c20b8b5b1e421aa37b93aa97231cfd8a6a9</id>
<content type='text'>
failure

Feedback and OK jsing@
</content>
</entry>
</feed>
