This is a minor bug I believe. I get in 3.7.1p2: run test agent-ptrace.sh ... ptrace succeeded?: exit code 1 failed disallow agent ptrace attach make[1]: *** [t-exec] Error 1 make[1]: Leaving directory `/usr/local/scratch/openssh-3.7.1p2/regress' make: *** [tests] Error 2 serow# ptrace bash: ptrace: command not found serow# I believe the test failed because the command does not exist on osf1. You might use /usr/opt/svr4/bin/truss on this platform, if user has installed the package(shown default location).
The test uses gdb to attach to a running agent. ssh-agent on OpenBSD can prevent this but not many (any?) other platforms have this capability. Please tell me what "uname" reports on your system and I'll add it to the list of systems that skip this test. Actually, does anyone know any platforms apart from OpenBSD support this? Maybe we should only run it on the platform(s) that it's know to work on?
I thought that disallow ptrace after set[ug]ig was fairly common. Linux does it, in any case.
Are you sure about Linux? It's on my "skip" list and the test fails on RH8 here when told not to skip: $ PATH=`pwd`:$PATH SUDO=sudo sh ../regress/test-exec.sh `pwd` ../regress/agent- ptrace.sh ptrace succeeded?: exit code 1 failed disallow agent ptrace attach
Is the ssh-agent sgid? It needs to be for the ptrace defeat code to work.
Created attachment 485 [details] Set sgid bit on ssh-agent and fix agent test No, there's nothing in the current regression tests to set the sgid bit on the agent. Martin, can you please try this patch? It'll either make ssh-agent sgid root (if SUDO is set) or skip the test.
Created attachment 486 [details] Set sgid bit on ssh-agent and fix agent test (minus bogus sshd_config changes) Oops, didn't mean to have those changes to the config files.
uname reports "OSF1" string.
With your patch I get: run test agent-ptrace.sh ... skipped (SUDO not set) and tests happily continue
Patch applied, thanks for the report. The regression tests normally run as a normal user, running with: $ SUDO=sudo make tests will run the appropriate parts as root (assuming you have sudo and it's correctly configured, that is.)
Mass change of RESOLVED bugs to CLOSED