Deleted Added
full compact
agent-ptrace.sh (180739) agent-ptrace.sh (180740)
1# $OpenBSD: agent-ptrace.sh,v 1.1 2002/12/09 15:38:30 markus Exp $
2# Placed in the Public Domain.
3
4tid="disallow agent ptrace attach"
5
6if have_prog uname ; then
7 case `uname` in
8 AIX|CYGWIN*|OSF1)

--- 27 unchanged lines hidden (view full) ---

36else
37 # ls -l ${SSH_AUTH_SOCK}
38 gdb ${SSHAGENT} ${SSH_AGENT_PID} > ${OBJ}/gdb.out 2>&1 << EOF
39 quit
40EOF
41 if [ $? -ne 0 ]; then
42 fail "gdb failed: exit code $?"
43 fi
1# $OpenBSD: agent-ptrace.sh,v 1.1 2002/12/09 15:38:30 markus Exp $
2# Placed in the Public Domain.
3
4tid="disallow agent ptrace attach"
5
6if have_prog uname ; then
7 case `uname` in
8 AIX|CYGWIN*|OSF1)

--- 27 unchanged lines hidden (view full) ---

36else
37 # ls -l ${SSH_AUTH_SOCK}
38 gdb ${SSHAGENT} ${SSH_AGENT_PID} > ${OBJ}/gdb.out 2>&1 << EOF
39 quit
40EOF
41 if [ $? -ne 0 ]; then
42 fail "gdb failed: exit code $?"
43 fi
44 egrep 'ptrace: Operation not permitted.|procfs:.*Permission denied.|ttrace attach: Permission denied.|procfs:.*: Invalid argument.' >/dev/null ${OBJ}/gdb.out
44 egrep 'ptrace: Operation not permitted.|procfs:.*Permission denied.|ttrace.*Permission denied.|procfs:.*: Invalid argument.' >/dev/null ${OBJ}/gdb.out
45 r=$?
46 rm -f ${OBJ}/gdb.out
47 if [ $r -ne 0 ]; then
48 fail "ptrace succeeded?: exit code $r"
49 fi
50
51 trace "kill agent"
52 ${SSHAGENT} -k > /dev/null
53fi
45 r=$?
46 rm -f ${OBJ}/gdb.out
47 if [ $r -ne 0 ]; then
48 fail "ptrace succeeded?: exit code $r"
49 fi
50
51 trace "kill agent"
52 ${SSHAGENT} -k > /dev/null
53fi