From ea4c670eb80721dab1237850011576eee15135f5 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Tue, 21 Oct 2003 22:27:08 +1000 Subject: - (dtucker) [regress/agent-ptrace.sh] Skip agent-test unless SUDO is set, make agent setgid during test. --- regress/agent-ptrace.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'regress/agent-ptrace.sh') diff --git a/regress/agent-ptrace.sh b/regress/agent-ptrace.sh index cd9c0023d..66c8dbc58 100644 --- a/regress/agent-ptrace.sh +++ b/regress/agent-ptrace.sh @@ -5,7 +5,7 @@ tid="disallow agent ptrace attach" if have_prog uname ; then case `uname` in - Linux|HP-UX|SunOS|NetBSD|AIX|CYGWIN*) + CYGWIN*) echo "skipped (not supported on this platform)" exit 0 ;; @@ -19,6 +19,15 @@ else exit 0 fi +if test -z "$SUDO" ; then + echo "skipped (SUDO not set)" + exit 0 +else + $SUDO chown root ${OBJ}${SSHAGENT} + $SUDO chgrp root ${OBJ}${SSHAGENT} + $SUDO chmod 2755 ${OBJ}${SSHAGENT} +fi + trace "start agent" eval `${SSHAGENT} -s` > /dev/null r=$? -- cgit v1.2.3 From 2bdacad70cb754f47fced50301c0ea535d98aa71 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Tue, 21 Oct 2003 23:12:37 +1000 Subject: Remove OBJ, shouldn't be there --- regress/agent-ptrace.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'regress/agent-ptrace.sh') diff --git a/regress/agent-ptrace.sh b/regress/agent-ptrace.sh index 66c8dbc58..3f6fbe78e 100644 --- a/regress/agent-ptrace.sh +++ b/regress/agent-ptrace.sh @@ -23,9 +23,9 @@ if test -z "$SUDO" ; then echo "skipped (SUDO not set)" exit 0 else - $SUDO chown root ${OBJ}${SSHAGENT} - $SUDO chgrp root ${OBJ}${SSHAGENT} - $SUDO chmod 2755 ${OBJ}${SSHAGENT} + $SUDO chown root ${SSHAGENT} + $SUDO chgrp root ${SSHAGENT} + $SUDO chmod 2755 ${SSHAGENT} fi trace "start agent" -- cgit v1.2.3 From be8a771af144c1ef09ccc8db0cbfaa57b159a517 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 3 Nov 2003 22:52:52 +1100 Subject: - (dtucker) [regress/agent-ptrace.sh] Use numeric uid and gid. --- ChangeLog | 3 ++- regress/agent-ptrace.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'regress/agent-ptrace.sh') diff --git a/ChangeLog b/ChangeLog index 67a747560..ebf64f942 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,7 @@ - markus@cvs.openbsd.org 2003/11/02 11:01:03 [auth2-gss.c compat.c compat.h sshconnect2.c] remove support for SSH_BUG_GSSAPI_BER; simon@sxw.org.uk + - (dtucker) [regress/agent-ptrace.sh] Use numeric uid and gid. 20031021 - (dtucker) [INSTALL] Some system crypt() functions support MD5 passwords @@ -1393,4 +1394,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.3091 2003/11/03 09:09:03 dtucker Exp $ +$Id: ChangeLog,v 1.3092 2003/11/03 11:52:52 dtucker Exp $ diff --git a/regress/agent-ptrace.sh b/regress/agent-ptrace.sh index 3f6fbe78e..3cfc680ca 100644 --- a/regress/agent-ptrace.sh +++ b/regress/agent-ptrace.sh @@ -23,8 +23,8 @@ if test -z "$SUDO" ; then echo "skipped (SUDO not set)" exit 0 else - $SUDO chown root ${SSHAGENT} - $SUDO chgrp root ${SSHAGENT} + $SUDO chown 0 ${SSHAGENT} + $SUDO chgrp 0 ${SSHAGENT} $SUDO chmod 2755 ${SSHAGENT} fi -- cgit v1.2.3 From 203c40b513853503417f030cd6557c6991431a97 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sat, 15 Nov 2003 12:13:16 +1100 Subject: - (dtucker) [regress/agent-ptrace.sh] Test for GDB output from Solaris and HP-UX, skip test on AIX. --- ChangeLog | 6 +++++- regress/agent-ptrace.sh | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'regress/agent-ptrace.sh') diff --git a/ChangeLog b/ChangeLog index 5cffbbc2c..ae096d4a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +20031115 + - (dtucker) [regress/agent-ptrace.sh] Test for GDB output from Solaris and + HP-UX, skip test on AIX. + 20031113 - (dtucker) [auth-pam.c] Append newlines to lines output by the pam_chauthtok_conv(). @@ -1413,4 +1417,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.3096 2003/11/13 08:52:31 dtucker Exp $ +$Id: ChangeLog,v 1.3097 2003/11/15 01:13:16 dtucker Exp $ diff --git a/regress/agent-ptrace.sh b/regress/agent-ptrace.sh index 3cfc680ca..bd79d7cb8 100644 --- a/regress/agent-ptrace.sh +++ b/regress/agent-ptrace.sh @@ -5,7 +5,7 @@ tid="disallow agent ptrace attach" if have_prog uname ; then case `uname` in - CYGWIN*) + AIX|CYGWIN*) echo "skipped (not supported on this platform)" exit 0 ;; @@ -41,7 +41,7 @@ EOF if [ $? -ne 0 ]; then fail "gdb failed: exit code $?" fi - grep 'ptrace: Operation not permitted.' >/dev/null ${OBJ}/gdb.out + egrep 'ptrace: Operation not permitted.|procfs:.*Permission denied.|ttrace attach: Permission denied.' >/dev/null ${OBJ}/gdb.out r=$? rm -f ${OBJ}/gdb.out if [ $r -ne 0 ]; then -- cgit v1.2.3