From ef0cd5ce7eeb0009e5795c2938083b59d03da106 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Thu, 27 Mar 2014 04:38:41 +0000 Subject: Check for PS_SUGID/PS_SUGIDEXEC against the correct set of flags ok deraadt@ --- sys/dev/systrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/systrace.c') 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 * 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; -- cgit v1.2.3