Date: 2008-10-13 00:14 |
Priority: 3 |
Submitted By:
Carsten Koch-Mauthe (ckm)
|
Assigned To:
Chandrashekhar B (chandra) |
Summary: Calling ssh_login_or_reuse_connection() causes an error message in openvasd.messages |
| Detailed description | Calling ssh_login_or_reuse_connection() within a script will always give the following messages in openvasd.messages:
===
[Mon Oct 13 00:01:11 2008][6979] shared_socket: Secret/SSH/socket is unknown
[Mon Oct 13 00:01:11 2008][6980] shared_socket: Secret/SSH/socket is unknown
[Mon Oct 13 00:01:11 2008][6979] shared_socket_register(): Error - recv_fd() failed
[Mon Oct 13 00:01:11 2008][6980] shared_socket_register(): Error - recv_fd() failed
===
Reusing an ssh connection seems not to be possible. Every call of login_or_reuse_connection() opens a new connection
to the target host.
Probably the shared_socket_register(name:"Secret/SSH/socket", socket:soc); from ssh_func.inc is not working
ok. shared_socket_register seems to be a libnasl function.
| |
|
Followup
| Message |
Date: 2009-04-23 10:24
Sender: Chandrashekhar B
Added ssh_login_or_reuse_connection() in ssh_authorization.nasl
and it works fine. Committed the code to SVN.
|
Date: 2009-04-17 15:49
Sender: Chandrashekhar B
Analysis:
When concurrency check is set to more than 1, multiple plugins
call ssh_login_or_reuse_connection(), until one plugin succeeds
in registering the "Secret/SSH/socket", they'll complain
of unknown socket and another condition is when all plugins are
trying to perform ssh_login and trying to register and acquire
the connection, we get errors.
To avoid this, we have to ensure that only one plugin registers
at the beginning of the plugins launch.
The following approaches solves the problem:
1. All local checks depend on gather-package-list.nasl so that
it registers the socket
2. Call ssh_login_or_reuse_connection() in ssh_authorization.nasl
(ACT_INIT) so that it registers first.
To DO:
Try approach 2 and test. |
Date: 2008-11-19 11:08
Sender: Michael Wiegand
I'm working on this bug together with Tim, since it seems to
block LSC for Solaris.
I have fixed the recv_fd() issue in openvas-libraries already,
but the bug is not yet resolved. | |
|
Attached Files:
| Name |
Download | | No Files Currently Attached | |
|
Changes:
| Field |
Old Value |
Date |
By |
| Resolution | Accepted As Bug | 2009-04-23 10:24 | chandra |
| close_date | 2009-04-23 10:24 | 2009-04-23 10:24 | chandra |
| assigned_to | mwiegand | 2009-04-23 10:24 | chandra |
| status_id | Open | 2009-04-23 10:24 | chandra |
| Component | openvas-libnasl | 2008-11-19 11:08 | mwiegand |
| Resolution | None | 2008-11-19 11:08 | mwiegand |
| assigned_to | none | 2008-11-19 11:08 | mwiegand | |
|