diff options
author | 2014-03-27 04:38:40 +0000 | |
---|---|---|
committer | 2014-03-27 04:38:40 +0000 | |
commit | 832083dc61a2fdae53d4aa92add5730022369469 (patch) | |
tree | f828181488d77619335e21ebcceb4ec976d22499 /sys/dev/systrace.c | |
parent | Reorder a few struct process members to avoid copying some values (diff) | |
download | wireguard-openbsd-832083dc61a2fdae53d4aa92add5730022369469.tar.xz wireguard-openbsd-832083dc61a2fdae53d4aa92add5730022369469.zip |
Check for PS_SUGID/PS_SUGIDEXEC against the correct set of flags
ok deraadt@
Diffstat (limited to 'sys/dev/systrace.c')
-rw-r--r-- | sys/dev/systrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c index a69e282bceb..981883ce190 100644 --- a/sys/dev/systrace.c +++ b/sys/dev/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.64 2014/03/26 05:23:42 guenther Exp $ */ +/* $OpenBSD: systrace.c,v 1.65 2014/03/27 04:38:40 guenther Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -1251,7 +1251,7 @@ systrace_attach(struct fsystrace *fst, pid_t pid) * traced. This is good security.] */ if ((proc->p_cred->p_ruid != p->p_cred->p_ruid || - ISSET(proc->p_flag, PS_SUGID | PS_SUGIDEXEC)) && + ISSET(proc->p_p->ps_flags, PS_SUGID | PS_SUGIDEXEC)) && (error = suser(p, 0)) != 0) goto out; |