More work on the uid lookup.
[ipfw.git] / dummynet / ip_fw2.c
index 4e8961d..039e084 100644 (file)
@@ -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 */