diff options
author | 2020-08-19 11:23:59 +0000 | |
---|---|---|
committer | 2020-08-19 11:23:59 +0000 | |
commit | a285515894cd1a4a2b58d1ab4ef99d8218a7877e (patch) | |
tree | 2fd57f39955fb367620ebd18cd26a92f9216dfbc /sys/netmpls | |
parent | Handle EADDRNOAVAIL from connect(2) gracefully (diff) | |
download | wireguard-openbsd-a285515894cd1a4a2b58d1ab4ef99d8218a7877e.tar.xz wireguard-openbsd-a285515894cd1a4a2b58d1ab4ef99d8218a7877e.zip |
Allow SIOCSWGDPID and SIOCSWGMAXFLOW ioctls for non-root
ifconfig(8) detects switch(4) through its unique SIOCSWGDPID ioctl(2) and
further does another switch specific ioctl for the default output regardless
of configuration and/or members.
But since these two ioctls are limited to root, running ifconfig as
unprivileged user makes switch interfaces partially appear as bridge devices
because the detection fails, e.g. STP parameters are shown instead of
datapath id and flow parameters.
ifioctl() limits a list of set/write ioctls to root, but these two read-only
ioctls seem to have been listed by mistake, so remove them to omit the root
check and fix "ifconfig switch" output for unprivileged users.
Feedback from dlg
Diffstat (limited to 'sys/netmpls')
0 files changed, 0 insertions, 0 deletions