X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=dummynet%2Fip_fw2.c;fp=dummynet%2Fip_fw2.c;h=039e084f03dfc829d706865a67735f9059197675;hb=7a117b941275e2471bf4e035c1042640f1d24f04;hp=4e8961db83abf0c1bac1644469aa760e429ae020;hpb=830ae69210540ea0e1ba3cc5d0db954b7107fbcc;p=ipfw.git diff --git a/dummynet/ip_fw2.c b/dummynet/ip_fw2.c index 4e8961d..039e084 100644 --- a/dummynet/ip_fw2.c +++ b/dummynet/ip_fw2.c @@ -2032,6 +2032,12 @@ check_uidgid(ipfw_insn_u32 *insn, int proto, struct ifnet *oif, return 0; } + /* check for slice_id matching */ + if (insn->o.opcode == O_GID) { + if (filp->GID != (gid_t)insn->d[0]) + return 0; + } + return 1; #else /* FreeBSD original code */