[Bug 783187] New: rcp: lost connection
https://bugzilla.novell.com/show_bug.cgi?id=783187 https://bugzilla.novell.com/show_bug.cgi?id=783187#c0 Summary: rcp: lost connection Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Update Problems AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: vcelakv@seznam.cz QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1 exapmle: rcp any_file server_suse_12_2: rcp: lost connection rsh is OK rsh server_suse_12_2 pwd /home/my_home tail /var/log/messages Oct 2 17:01:11 ete2 in.rshd[2650]: connect from 192.1.1.160 (192.1.1.160) Oct 2 17:01:11 ete2 rshd[2650]: pam_rhosts(rsh:auth): allowed access to root@g10.unix as vce Oct 2 17:01:11 ete2 systemd-logind[738]: New session 61 of user vce. Oct 2 17:01:11 ete2 rshd[2650]: root@g10.unix as vce: cmd='rcp -t .' Oct 2 17:01:11 ete2 systemd-logind[738]: Removed session 61. Close is after rcmd() in rcp OpenSUSE 12.1 is OK. Reproducible: Always Steps to Reproduce: 1.rcp any_file server_suse_12_2: 2. 3. tcpdump port 514 -X tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 16:22:01.902781 IP g10.unix.1023 > ete2.unix.shell: Flags [S], seq 3574133646, win 5840, options [mss 1460,sackOK,TS val 90916289 ecr 0,nop,wscale 7], length 0 0x0000: 4500 003c b64f 4000 4006 015f c001 01a0 E..<.O@.@.._.... 0x0010: c001 016b 03ff 0202 d508 f38e 0000 0000 ...k............ 0x0020: a002 16d0 945d 0000 0204 05b4 0402 080a .....].......... 0x0030: 056b 45c1 0000 0000 0103 0307 .kE......... 16:22:01.902826 IP ete2.unix.shell > g10.unix.1023: Flags [S.], seq 399362910, ack 3574133647, win 14480, options [mss 1460,sackOK,TS val 7527938 ecr 90916289,nop,wsca le 7], length 0 0x0000: 4500 003c 0000 4000 4006 b7ae c001 016b E..<..@.@......k 0x0010: c001 01a0 0202 03ff 17cd cb5e d508 f38f ...........^.... 0x0020: a012 3890 833c 0000 0204 05b4 0402 080a ..8..<.......... 0x0030: 0072 de02 056b 45c1 0103 0307 .r...kE..... 16:22:01.903264 IP g10.unix.1023 > ete2.unix.shell: Flags [.], ack 1, win 46, options [nop,nop,TS val 90916290 ecr 7527938], length 0 0x0000: 4500 0034 b650 4000 4006 0166 c001 01a0 E..4.P@.@..f.... 0x0010: c001 016b 03ff 0202 d508 f38f 17cd cb5f ...k..........._ 0x0020: 8010 002e 1819 0000 0101 080a 056b 45c2 .............kE. 0x0030: 0072 de02 .r.. 16:22:01.903295 IP g10.unix.1023 > ete2.unix.shell: Flags [P.], seq 1:2, ack 1, win 46, options [nop,nop,TS val 90916290 ecr 7527938], length 1 0x0000: 4500 0035 b651 4000 4006 0164 c001 01a0 E..5.Q@.@..d.... 0x0010: c001 016b 03ff 0202 d508 f38f 17cd cb5f ...k..........._ 0x0020: 8018 002e 1810 0000 0101 080a 056b 45c2 .............kE. 0x0030: 0072 de02 00 .r... 16:22:01.903306 IP ete2.unix.shell > g10.unix.1023: Flags [.], ack 2, win 114, options [nop,nop,TS val 7527938 ecr 90916290], length 0 0x0000: 4500 0034 155d 4000 4006 a259 c001 016b E..4.]@.@..Y...k 0x0010: c001 01a0 0202 03ff 17cd cb5f d508 f390 ..........._.... 0x0020: 8010 0072 8334 0000 0101 080a 0072 de02 ...r.4.......r.. 0x0030: 056b 45c2 .kE. 16:22:01.903837 IP g10.unix.1023 > ete2.unix.shell: Flags [P.], seq 2:19, ack 1, win 46, options [nop,nop,TS val 90916290 ecr 7527938], length 17 0x0000: 4500 0045 b652 4000 4006 0153 c001 01a0 E..E.R@.@..S.... 0x0010: c001 016b 03ff 0202 d508 f390 17cd cb5f ...k..........._ 0x0020: 8018 002e 3111 0000 0101 080a 056b 45c2 ....1........kE. 0x0030: 0072 de02 7663 6500 7663 6500 7263 7020 .r..vce.vce.rcp. 0x0040: 2d74 202e 00 -t... 16:22:01.903850 IP ete2.unix.shell > g10.unix.1023: Flags [.], ack 19, win 114, options [nop,nop,TS val 7527939 ecr 90916290], length 0 0x0000: 4500 0034 155e 4000 4006 a258 c001 016b E..4.^@.@..X...k 0x0010: c001 01a0 0202 03ff 17cd cb5f d508 f3a1 ..........._.... 0x0020: 8010 0072 8334 0000 0101 080a 0072 de03 ...r.4.......r.. 0x0030: 056b 45c2 .kE. 16:22:01.921112 IP ete2.unix.shell > g10.unix.1023: Flags [P.], seq 1:2, ack 19, win 114, options [nop,nop,TS val 7527956 ecr 90916290], length 1 0x0000: 4500 0035 155f 4000 4006 a256 c001 016b E..5._@.@..V...k 0x0010: c001 01a0 0202 03ff 17cd cb5f d508 f3a1 ..........._.... 0x0020: 8018 0072 8335 0000 0101 080a 0072 de14 ...r.5.......r.. 0x0030: 056b 45c2 00 .kE.. 16:22:01.921347 IP g10.unix.1023 > ete2.unix.shell: Flags [.], ack 2, win 46, options [nop,nop,TS val 90916308 ecr 7527956], length 0 0x0000: 4500 0034 b653 4000 4006 0163 c001 01a0 E..4.S@.@..c.... 0x0010: c001 016b 03ff 0202 d508 f3a1 17cd cb60 ...k...........` 0x0020: 8010 002e 17e2 0000 0101 080a 056b 45d4 .............kE. 0x0030: 0072 de14 .r.. 16:22:01.921414 IP ete2.unix.shell > g10.unix.1023: Flags [F.], seq 2, ack 19, win 114, options [nop,nop,TS val 7527956 ecr 90916308], length 0 0x0000: 4500 0034 1560 4000 4006 a256 c001 016b E..4.`@.@..V...k 0x0010: c001 01a0 0202 03ff 17cd cb60 d508 f3a1 ...........`.... 0x0020: 8011 0072 8334 0000 0101 080a 0072 de14 ...r.4.......r.. 0x0030: 056b 45d4 .kE. 16:22:01.922117 IP g10.unix.1023 > ete2.unix.shell: Flags [F.], seq 19, ack 3, win 46, options [nop,nop,TS val 90916309 ecr 7527956], length 0 0x0000: 4508 0034 b654 4000 4006 015a c001 01a0 E..4.T@.@..Z.... 0x0010: c001 016b 03ff 0202 d508 f3a1 17cd cb61 ...k...........a 0x0020: 8011 002e 17df 0000 0101 080a 056b 45d5 .............kE. 0x0030: 0072 de14 .r.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783187 https://bugzilla.novell.com/show_bug.cgi?id=783187#c1 --- Comment #1 from Vladimir Vcelak <vcelakv@seznam.cz> 2012-10-02 13:49:29 UTC --- same as: rcp file1 127.0.0.1:file2 rcp: lost connection -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783187 https://bugzilla.novell.com/show_bug.cgi?id=783187#c2 --- Comment #2 from Vladimir Vcelak <vcelakv@seznam.cz> 2012-10-05 08:04:24 UTC --- The same problem here: https://bugzilla.redhat.com/show_bug.cgi?id=839022 I edited file /etc/pam.d/common-session # session optional pam_systemd.so (as comments) and the rcp to work fine. Problem is modul pam_systemd.so -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783187 https://bugzilla.novell.com/show_bug.cgi?id=783187#c kk zhang <kkzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkzhang@suse.com AssignedTo|bnc-team-screening@forge.pr |vcizek@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783187 https://bugzilla.novell.com/show_bug.cgi?id=783187#c3 Vitezslav Cizek <vcizek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |vcizek@suse.com --- Comment #3 from Vitezslav Cizek <vcizek@suse.com> 2012-10-17 14:47:29 CEST --- The problem (as described in comment #10 in the RH bug): Atfer pam_open_session(), systemd_logind tracks the session (via pam_systemd) using a pipe connection between systemd-logind and rshd. When rshd exec()s the shell, the pipe gets closed, because it was created with O_CLOEXEC. Then logind sends SIGHUP to rshd, thus killing it and closing the rsh connection. Adding a fork() before the exec() solves the problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783187 https://bugzilla.novell.com/show_bug.cgi?id=783187#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-10-18 21:00:06 CEST --- This is an autogenerated message for OBS integration: This bug (783187) was mentioned in https://build.opensuse.org/request/show/138756 Factory / rsh -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783187 https://bugzilla.novell.com/show_bug.cgi?id=783187#c5 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from Benjamin Brunner <bbrunner@suse.com> 2012-10-24 15:33:26 CEST --- Update released for 11.4, 12.1 and 12.2. Resolved fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=783187 https://bugzilla.novell.com/show_bug.cgi?id=783187#c6 --- Comment #6 from Swamp Workflow Management <swamp@suse.de> 2012-10-24 14:09:48 UTC --- openSUSE-RU-2012:1396-1: An update that has two recommended fixes can now be installed. Category: recommended (low) Bug References: 723593,783187 CVE References: Sources used: openSUSE 12.2 (src): rsh-0.17-722.4.1 openSUSE 12.1 (src): rsh-0.17-719.4.1 openSUSE 11.4 (src): rsh-0.17-718.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com