]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream commit
authordjm@openbsd.org <djm@openbsd.org>
Fri, 11 Sep 2015 04:55:01 +0000 (04:55 +0000)
committerDamien Miller <djm@mindrot.org>
Wed, 16 Sep 2015 08:01:56 +0000 (18:01 +1000)
skip if running as root; many systems (inc OpenBSD) allow
 root to ptrace arbitrary processes

Upstream-Regress-ID: be2b925df89360dff36f972951fa0fa793769038

regress/agent-ptrace.sh

index 1912ca8f9bb0b7ff08da13751ecb81ac176a0aa7..bb676d631574a8957b6e00bc3f82894b73915fe6 100644 (file)
@@ -12,6 +12,11 @@ if have_prog uname ; then
        esac
 fi
 
+if [ "x$USER" = "xroot" ]; then
+       echo "Skipped: running as root"
+       exit 0
+fi
+
 if have_prog gdb ; then
        : ok
 else