diff options
author | 2015-09-11 04:55:01 +0000 | |
---|---|---|
committer | 2015-09-11 04:55:01 +0000 | |
commit | b27b1e5fbfc33e9bf5a12b6454dd597a8f331492 (patch) | |
tree | a38b73e63a94de679c8e88082a0a1899f5edc9e6 | |
parent | expand %i in ControlPath to UID; bz#2449 (diff) | |
download | wireguard-openbsd-b27b1e5fbfc33e9bf5a12b6454dd597a8f331492.tar.xz wireguard-openbsd-b27b1e5fbfc33e9bf5a12b6454dd597a8f331492.zip |
skip if running as root; many systems (inc OpenBSD) allow
root to ptrace arbitrary processes
-rw-r--r-- | regress/usr.bin/ssh/agent-ptrace.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/agent-ptrace.sh b/regress/usr.bin/ssh/agent-ptrace.sh index 35a908b7c69..fbfe0ad933d 100644 --- a/regress/usr.bin/ssh/agent-ptrace.sh +++ b/regress/usr.bin/ssh/agent-ptrace.sh @@ -1,8 +1,13 @@ -# $OpenBSD: agent-ptrace.sh,v 1.2 2014/02/27 21:21:25 djm Exp $ +# $OpenBSD: agent-ptrace.sh,v 1.3 2015/09/11 04:55:01 djm Exp $ # Placed in the Public Domain. tid="disallow agent ptrace attach" +if [ "x$USER" = "xroot" ]; then + echo "Skipped: running as root" + exit 0 +fi + trace "start agent" eval `${SSHAGENT} -s` > /dev/null r=$? |