git://git.onelab.eu
/
ipfw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
More work on the uid lookup.
[ipfw.git]
/
dummynet
/
ip_fw2.c
diff --git
a/dummynet/ip_fw2.c
b/dummynet/ip_fw2.c
index
4e8961d
..
039e084
100644
(file)
--- 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 */