[haiku-bugs] Re: [Haiku] #12364: SSH reverse tunneling broken (seemingly not a haikuport issue)

  • From: "ttcoder" <trac@xxxxxxxxxxxx>
  • Date: Wed, 09 Sep 2015 12:10:37 -0000

#12364: SSH reverse tunneling broken (seemingly not a haikuport issue)
----------------------------------+----------------------------
Reporter: ttcoder | Owner: nobody
Type: bug | Status: new
Priority: critical | Milestone: R1/beta1
Component: Network & Internet | Version: R1/Development
Resolution: | Keywords:
Blocked By: 12260 | Blocking:
Has a Patch: 0 | Platform: All
----------------------------------+----------------------------

Comment (by ttcoder):

Indeed kallisti5, and the work-around described over there works great,
thanks!

With this work-around in place, the priority I set seems heavy-handed now,
can be set back to 'normal' I guess

I might still work on getting some `strace` data to you pulkomandy; if
there is a part of haiku that still wants to access the deprecated 'hosts'
file there is probably interest in finding it and correcting it?

Indeed the strace indicates that ssh ''does'' access the hosts file,
though it does not readily indicate if that access comes from a userland
function (like gethostbyname() ..etc) in a library or the ssh tool or
something else:

{{{
[ 16167] _kern_getpeername(0x3, 0x72dabb08, [0x20]) = 0x00000000 No error
(2 us)
[ 16167] _kern_getpeername(0x3, 0x72dabaf4, [0x20]) = 0x00000000 No error
(1 us)
[ 16167] _kern_write(0x3, 0xffffffffffffffff, 0x181e7e18, 0x38) =
0x00000038 (17 us)
[ 16167] _kern_getsockopt(0x3, 0x6, 0x1, 0x72dabb80, [0x4]) = 0x00000000
No error (2 us)
[ 16167] _kern_setsockopt(0x3, 0x6, 0x1, 0x72dabb80, 0x4) = 0x00000000 No
error (1 us)
[ 16167] _kern_getsockname(0x3, 0x72dabad8, [0x20]) = 0x00000000 No error
(1 us)
[ 16167] _kern_setsockopt(0x3, 0x0, 0x3, 0x72dabb94, 0x4) = 0x00000000 No
error (1 us)
[ 16167] _kern_sigaction(0x1, (nil), 0x72daba60) = 0x00000000 No error (1
us)
[ 16167] _kern_sigaction(0x1, 0x72daba74, (nil)) = 0x00000000 No error (1
us)
(..)
[ 16167] _kern_select(0x4, [3 100 101 102 103 106 107 108 ...], [68 69 71
73 75 76 77 79 ...], (nil), 0xffffffffffffffff, (nil)) = 0x1 (9607827 us)
[ 16167] _kern_read(0x3, 0xffffffffffffffff, 0x72da9a98, 0x2000) =
0x00000058 (10 us)
[ 16167] _kern_create_sem(0x0, "pthread rwlock") = 0x001bf28b (3 us)
[ 16167] _kern_read_stat(0xffffffff, "/etc/nsswitch.conf", true,
0x72dab6f0, 0x58) = 0x80006003 No such file or directory (35 us)
[ 16167] _kern_open(0xffffffff, "/boot/system/settings/network/hosts",
0x0, 0x0) = 0x00000004 (19 us)
}}}

--
Ticket URL: <https://dev.haiku-os.org/ticket/12364#comment:4>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: