| Summary: | agent-ptrace.sh fails | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Martin Mokrejs <mmokrejs> | ||||||
| Component: | Build system | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | normal | ||||||||
| Priority: | P2 | ||||||||
| Version: | -current | ||||||||
| Hardware: | All | ||||||||
| OS: | OSF/1 | ||||||||
| Attachments: |
|
||||||||
|
Description
Martin Mokrejs
2003-10-17 21:35:39 AEST
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 |