summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2010-12-15 14:22:25 +0000
committerclaudio <claudio@openbsd.org>2010-12-15 14:22:25 +0000
commit04523091a16553628956e63cc3d1b31f792bdfe6 (patch)
tree58c2195c52cfbecc4b8ae889164f6d26ed92c0cc /lib
parent- clarify the "probability" text; based on a diff from Thomas Pfaff (diff)
downloadwireguard-openbsd-04523091a16553628956e63cc3d1b31f792bdfe6.tar.xz
wireguard-openbsd-04523091a16553628956e63cc3d1b31f792bdfe6.zip
Be more careful when copying the pf rule from userland into the kernel.
All pointers in the struct need to be cleared and reset. So instead of bcopy the struct and clear some fields start with a clean struct and assign the values that need to be copied. Fixes a local vulnerability but only root can issue the problematic ioctl(). Reported by Jean Sigwald, has been in snaps for a while and OK deraadt@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions