]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pfctl: Fix ifgroup check
authorkp <kp@FreeBSD.org>
Fri, 19 Apr 2019 10:52:54 +0000 (10:52 +0000)
committerkp <kp@FreeBSD.org>
Fri, 19 Apr 2019 10:52:54 +0000 (10:52 +0000)
commit88e3fcf359454d5a83831127fccb93e9c5412e21
tree09a0fd06dda3aa88ecd3c5530820155dc2952e0c
parent55a254f77345437156ffb61a3e8bc7aa5d93d34a
pfctl: Fix ifgroup check

We cannot just assume that any name which ends with a letter is a group
That's not been true since we allowed renaming of network interfaces. It's also
not true for things like epair0a.

Try to retrieve the group members for the name to check, since we'll get ENOENT
if the group doesn't exist.

MFC after: 1 week
Event: Aberdeen hackathon 2019
sbin/pfctl/pfctl_optimize.c