<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sbin/pflogd, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sbin/pflogd?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sbin/pflogd?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-11-27T17:49:09Z</updated>
<entry>
<title>use _PATH_ names for unveil if possible</title>
<updated>2019-11-27T17:49:09Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-11-27T17:49:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=7302e9712b89c9c53b91000bf9a5f8eefd59f909'/>
<id>urn:sha1:7302e9712b89c9c53b91000bf9a5f8eefd59f909</id>
<content type='text'>
</content>
</entry>
<entry>
<title>mop up for the pcap.3 rename;</title>
<updated>2019-08-30T17:51:47Z</updated>
<author>
<name>jmc</name>
<email>jmc@openbsd.org</email>
</author>
<published>2019-08-30T17:51:47Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=50f49510371432b21c1ec33cf6afcbcb57b73704'/>
<id>urn:sha1:50f49510371432b21c1ec33cf6afcbcb57b73704</id>
<content type='text'>
help/ok deraadt
</content>
</entry>
<entry>
<title>Fix copy pasto, re-add missing goto in error path.</title>
<updated>2019-07-25T17:32:33Z</updated>
<author>
<name>brynet</name>
<email>brynet@openbsd.org</email>
</author>
<published>2019-07-25T17:32:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=49f581ec404d0f363e4fe168598b97b652566817'/>
<id>urn:sha1:49f581ec404d0f363e4fe168598b97b652566817</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Yet another workaround for crappy libpcap API design</title>
<updated>2019-07-25T14:53:21Z</updated>
<author>
<name>brynet</name>
<email>brynet@openbsd.org</email>
</author>
<published>2019-07-25T14:53:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4053af6133ce1545a5e87acec29fae4cbe62e66a'/>
<id>urn:sha1:4053af6133ce1545a5e87acec29fae4cbe62e66a</id>
<content type='text'>
Add an internal version of pcap_open_live that ensures bpf(4) devices
are opened read-only before locking. Neither pflogd(8) or spamlogd(8)
require write access to bpf(4). Inspired by similar solution in
OpenBSD tcpdump(8).

pflogd(8) was safe since being unveiled last year, but spamlogd(8)
was having /dev/bpf opened O_RDWR.

Issue discovered by bluhm@'s unveil(2) accounting commit.

ok deraadt@, mestre@ (thanks for testing spamlogd!)
</content>
</entry>
<entry>
<title>When system calls indicate an error they return -1, not some arbitrary</title>
<updated>2019-06-28T13:32:41Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-06-28T13:32:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=df69c215c7c66baf660f3f65414fd34796c96152'/>
<id>urn:sha1:df69c215c7c66baf660f3f65414fd34796c96152</id>
<content type='text'>
value &lt; 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
</content>
</entry>
<entry>
<title>Unveil pflogd(8). Similiar to florian@'s recent changes to ifconfig(8),</title>
<updated>2018-08-26T18:26:51Z</updated>
<author>
<name>brynet</name>
<email>brynet@openbsd.org</email>
</author>
<published>2018-08-26T18:26:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8bdd01ea2b6350399c70d2a32bcce6cedfed500f'/>
<id>urn:sha1:8bdd01ea2b6350399c70d2a32bcce6cedfed500f</id>
<content type='text'>
the priviledged parent cannot be pledged due to certain ioctls, but we
can use unveil(2) to lock down its access to the filesystem.

To be able to use hostnames/dns in tcpdump-like filter expressions,
we unveil /etc/{resolv.conf,hosts,services} "r", kept in sync with the
kernel bypass for pledge("dns")

Additionally, we need to unveil /dev/bpf "r" and the output log file
"rwc".

The unpriviledged child is pledged "stdio recvfd" and thus does not need
any unveils.

With feedback/testing from florian@, deraadt@

ok florian@ deraadt@
</content>
</entry>
<entry>
<title>pflogd(8): don't try to rename(2) broken/invalid pflog files, instead,</title>
<updated>2018-08-26T18:24:46Z</updated>
<author>
<name>brynet</name>
<email>brynet@openbsd.org</email>
</author>
<published>2018-08-26T18:24:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4b2941040aa61d85cab3466eb80e5b1763fe98b4'/>
<id>urn:sha1:4b2941040aa61d85cab3466eb80e5b1763fe98b4</id>
<content type='text'>
suspend logging until the log file has been moved out of the way, and
we have received either SIGHUP or SIGALRM.

ok florian@ deraadt@
</content>
</entry>
<entry>
<title>Rework pflogd(8)'s fork+exec model; re-exec the unpriv child, not the</title>
<updated>2017-09-09T13:02:52Z</updated>
<author>
<name>brynet</name>
<email>brynet@openbsd.org</email>
</author>
<published>2017-09-09T13:02:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=86ab39f347a8012d18607354315c7e469c2a9d61'/>
<id>urn:sha1:86ab39f347a8012d18607354315c7e469c2a9d61</id>
<content type='text'>
privileged parent.

Based on feedback from deraadt@ and bluhm@ (worked on syslogd).

ok deraadt@
</content>
</entry>
<entry>
<title>Bring back the "Exiting" log message in pflogd(8), but do not set</title>
<updated>2017-09-08T13:34:29Z</updated>
<author>
<name>bluhm</name>
<email>bluhm@openbsd.org</email>
</author>
<published>2017-09-08T13:34:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=88db71b057c60984e6c89e26ee7794b7624dc2cd'/>
<id>urn:sha1:88db71b057c60984e6c89e26ee7794b7624dc2cd</id>
<content type='text'>
the LOG_CONS flag in openlog(3).  This avoids output to the console
on shutdown.  Discussed with benno@ who wants to see when a deamon
stops during normal system operation.
OK brynet@
</content>
</entry>
<entry>
<title>pflogd(8) currently spams the console on shutdown if syslogd(8) wins the</title>
<updated>2017-09-06T12:43:16Z</updated>
<author>
<name>brynet</name>
<email>brynet@openbsd.org</email>
</author>
<published>2017-09-06T12:43:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=41dc1249d462b1bbc8a17ed60dec8bbfef50cd66'/>
<id>urn:sha1:41dc1249d462b1bbc8a17ed60dec8bbfef50cd66</id>
<content type='text'>
race to die, so just stop logging pflogd exits.

This logging probably comes from the fact that pflogd was largely based
on syslogd.

Removes the annoying "pflogd[23954]: Exiting" messages pointed out by
deraadt@

Also cleanup some missed SIGCHLD handling code that is no longer needed.

"LGTM" mikeb@
</content>
</entry>
</feed>
