<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sbin/pfctl/parse.y, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sbin/pfctl/parse.y?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sbin/pfctl/parse.y?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-01-28T15:40:35Z</updated>
<entry>
<title>sbin/pfctl: replace TAILQ concatenation loop with TAILQ_CONCAT</title>
<updated>2020-01-28T15:40:35Z</updated>
<author>
<name>bket</name>
<email>bket@openbsd.org</email>
</author>
<published>2020-01-28T15:40:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c8d5c2349e3f227bad1d2f5dc86738410c5de33e'/>
<id>urn:sha1:c8d5c2349e3f227bad1d2f5dc86738410c5de33e</id>
<content type='text'>
OK kn@, sashan@, florian@
</content>
</entry>
<entry>
<title>Do the actual pfr_strerror() to pf_strerror() rename</title>
<updated>2020-01-15T22:38:30Z</updated>
<author>
<name>kn</name>
<email>kn@openbsd.org</email>
</author>
<published>2020-01-15T22:38:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c802a0d9d6a6510e658984688f179f6777ccfce2'/>
<id>urn:sha1:c802a0d9d6a6510e658984688f179f6777ccfce2</id>
<content type='text'>
Missed in previous
</content>
</entry>
<entry>
<title>Use -1 to indicate an invalid uid/gid, not UID_MAX and GID_MAX.</title>
<updated>2019-10-17T21:54:28Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2019-10-17T21:54:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=b4de0548946752b02f28ecae80da4996de54dba4'/>
<id>urn:sha1:b4de0548946752b02f28ecae80da4996de54dba4</id>
<content type='text'>
This is the userland portion.  OK deraadt@ sashan@
</content>
</entry>
<entry>
<title>Fix file descriptor leak due to popfile() never closing the main config file.</title>
<updated>2019-08-26T18:53:58Z</updated>
<author>
<name>tobhe</name>
<email>tobhe@openbsd.org</email>
</author>
<published>2019-08-26T18:53:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=da1e1ceac58e972f1471c3c499f362dc1e1435e7'/>
<id>urn:sha1:da1e1ceac58e972f1471c3c499f362dc1e1435e7</id>
<content type='text'>
The fix is the same as for other parse.y files in the tree (see bgpd(8) or
unwind(8))

ok bluhm@
</content>
</entry>
<entry>
<title>Fix integer sizes in format strings and enable formatting warnings</title>
<updated>2019-07-05T06:56:22Z</updated>
<author>
<name>patrick</name>
<email>patrick@openbsd.org</email>
</author>
<published>2019-07-05T06:56:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5ca5e031bcc137708afec56323a0ef145e1e521c'/>
<id>urn:sha1:5ca5e031bcc137708afec56323a0ef145e1e521c</id>
<content type='text'>
for yyerror.

From Moritz Buhl
ok bluhm@ claudio@
</content>
</entry>
<entry>
<title>pfctl should check pfctl.astack is not overrun</title>
<updated>2019-05-08T21:31:30Z</updated>
<author>
<name>sashan</name>
<email>sashan@openbsd.org</email>
</author>
<published>2019-05-08T21:31:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=12ebb2cc6882b11085987a7f70125792ae38df4b'/>
<id>urn:sha1:12ebb2cc6882b11085987a7f70125792ae38df4b</id>
<content type='text'>
(bug found and fixed by Petr Hoffmann _at_ oracle.com)

OK kn@
</content>
</entry>
<entry>
<title>Fix table definition parsing as unprivileged user</title>
<updated>2019-04-18T21:58:59Z</updated>
<author>
<name>kn</name>
<email>kn@openbsd.org</email>
</author>
<published>2019-04-18T21:58:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4650ad2af4d9ff037e73a193abfcdabd3c0e1ca5'/>
<id>urn:sha1:4650ad2af4d9ff037e73a193abfcdabd3c0e1ca5</id>
<content type='text'>
revision 1.689 introduced warn_duplicate_tables() unconditionally, breaking
the parser on tables withs insufficient permissions to open pf(4):

	$ echo 'table &lt;t&gt;' | pfctl -nf-
	pfctl: pfr_get_tables: Bad file descriptor

So simply check whether pfctl is able to get the table list first.  If not,
instead of silently avoiding namespace collision checks, print a brief
notice iff `-v' is given to help finding duplicate definitions by hand:

	$ echo 'table &lt;t&gt;' | ./obj/pfctl -vnf-
	table &lt;t&gt;
	stdin:1: skipping duplicate table checks for &lt;t&gt;

Reported by Rivo Nurges, thanks!
OK benno sashan
</content>
</entry>
<entry>
<title>Fix once rules</title>
<updated>2019-03-06T19:49:05Z</updated>
<author>
<name>kn</name>
<email>kn@openbsd.org</email>
</author>
<published>2019-03-06T19:49:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6da84b37b3f3e88426bb98c24d021b664f406547'/>
<id>urn:sha1:6da84b37b3f3e88426bb98c24d021b664f406547</id>
<content type='text'>
parse.y revision 1.682 from 16.07.2018 errornously allowed `match once' and
`anchor "a" once'.

Fix both by checking for PF_DROP not PF_MATCH and creating anchors in the
parser already such that they can be used to distinguish anchor rules in
the same check as well.

Found and fixed by Petr Hoffmann &lt;petr.hoffmann at oracle dot com&gt;, thanks!

While here, remove an unneeded cast and make pfctl_add_rule() void as it
always returned 0.

OK sashan
</content>
</entry>
<entry>
<title>(unsigned) means (unsigned int) which on ptrdiff_t or size_t or other</title>
<updated>2019-02-13T22:57:07Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-02-13T22:57:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=915c3f33d30399505d94a06fc5123e4bbdc9531f'/>
<id>urn:sha1:915c3f33d30399505d94a06fc5123e4bbdc9531f</id>
<content type='text'>
larger types really is a range reduction...
Almost any cast to (unsigned) is a bug.
ok millert tb benno
</content>
</entry>
<entry>
<title>Anchor names must not be empty</title>
<updated>2019-02-10T15:05:17Z</updated>
<author>
<name>kn</name>
<email>kn@openbsd.org</email>
</author>
<published>2019-02-10T15:05:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=85af6f4b290ab8f694baace9d5969d95acdb5714'/>
<id>urn:sha1:85af6f4b290ab8f694baace9d5969d95acdb5714</id>
<content type='text'>
The parser would allow bogus input and sometimes even produce invalid rules
on empty anchor names, so error out immediately.

OK sashan
</content>
</entry>
</feed>
