diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-10-16 14:41:53 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-10-16 14:41:53 +0000 |
commit | 7b5f02a009fbeddbdb4ae728e95e78d2e72bba3c (patch) | |
tree | 3f3b737952187f23d48cff43644a1b55cec223fe /bin | |
parent | 8505c5d3fc8d55c261e1e15ce3fe3cac173c38a3 (diff) |
correctly evaluate group predicates.
afrom provos
Diffstat (limited to 'bin')
-rw-r--r-- | bin/systrace/filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/filter.c b/bin/systrace/filter.c index 10249d4734e..8069ec29ca9 100644 --- a/bin/systrace/filter.c +++ b/bin/systrace/filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: filter.c,v 1.19 2002/10/09 03:52:10 itojun Exp $ */ +/* $OpenBSD: filter.c,v 1.20 2002/10/16 14:41:52 itojun Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -143,7 +143,7 @@ filter_predicate(struct intercept_pid *icpid, struct predicate *pdc) if (pdc->p_flags & PREDIC_UID) res = icpid->uid == pdc->p_uid; else if (pdc->p_flags & PREDIC_GID) - res = icpid->uid == pdc->p_uid; + res = icpid->gid == pdc->p_gid; return (negative ? !res : res); } |