Bug 32852 - We have deprecated version of socat
Summary: We have deprecated version of socat
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-02-15 19:23 CET by katnatek
Modified: 2024-02-17 01:56 CET (History)
4 users (show)

See Also:
Source RPM: socat-2.0.0-0.b9.11.mga9
CVE:
Status comment:


Attachments
Remote login script for socat test (982 bytes, application/x-shellscript)
2024-02-16 18:29 CET, Len Lawrence
Details

Description katnatek 2024-02-15 19:23:29 CET
Description of problem:

Time ago a packager use a beta version of socat 2 to fix an issue
But upstream drop that branch and now version 1.8.x is the supported version 

This need build socat 1.8.0
And rebuild or update kubernetes kwallet-pam
katnatek 2024-02-15 19:24:30 CET

Whiteboard: (none) => MGA9TOO

Comment 1 Dan Fandrich 2024-02-15 19:57:41 CET
See also the thread at https://ml.mageia.org/l/arc/dev/2023-12/msg00102.html

The socat author confirmed that we should not be using the beta 2.0 branch. That means we'll need to add an epoch to our RPM. I'll go ahead and do that.

CC: (none) => dan
Status: NEW => ASSIGNED
Assignee: geiger.david68210 => dan

Comment 2 Dan Fandrich 2024-02-16 03:08:14 CET
David is already working on it.

Assignee: dan => geiger.david68210

Comment 3 David GEIGER 2024-02-16 06:30:06 CET
Assigning to QA,

Packages in 9/Core/Updates_testing:
======================
socat-1.8.0.0-1.1.mga9

From SRPMS:
socat-1.8.0.0-1.1.mga9.src.rpm

Assignee: geiger.david68210 => qa-bugs
Whiteboard: MGA9TOO => (none)
Version: Cauldron => 9

Comment 4 Len Lawrence 2024-02-16 18:24:21 CET
Mageia9, x86_64
There are no examples in the man pages but found some at  https://people.computing.clemson.edu/~jmarty/courses/commonCourseContent/AdvancedModule-LinuxSysAdmin/socat%20by%20example%20_%20www.bitkistl.com.pdf
https://www.bitkistl.com/2016/03/socat-by-example.html

Tried something simple before updating, which worked.

After updating:
Terminal 1:
$ socat tcp-l:7777,reuseaddr,fork system:'echo hello; sleep 5;
echo goodbye',nofork

Terminal 2:
$ socat tcp:localhost:7777 -
hello
goodbye

The other example worked (login file attached).
This attempts a remote login on the parent machine.  Two processes are launched in separate terminals, one to launch the login server and the other to respond.  A third terminal is used to connect the two processes.

[1]
$ socat -d -d -v tcp-l:1235 EXEC:'./ssh_login.sh'
[2]
$ socat -d -d -v tcp-l:1234,reuseaddr EXEC:'ssh -l lcl yildun',pty,setsid,ctty
[3]
$ socat -d -d -v tcp-l:1235 EXEC:'./ssh_login.sh'

[1] and [2] loop until one or the other is shut down with Ctrl-C.
log.txt records the responses from [2].
$ cat log.txt
>> just started >>
sent: #
(lcl@yildun) Password: 
got: Last login: Fri Feb 16 16:50:54 2024 from 192.168.1.106
got: lcl@yildun:~ $ #
>You are logged in, and there is a command prompt
sent: pwd
lcl@yildun:~ $ pwd
/home/lcl
>You are in the home folder
sent: uname -a
got: lcl@yildun:~ $ uname -a
Linux yildun 6.6.14-desktop-2.mga9 #1 SMP PREEMPT_DYNAMIC Tue Jan 30 15:48:16 UTC 2024 x86_64 GNU/Linux
>here runs linux
sent: echo sleeping
got: lcl@yildun:~ $ echo sleeping
>echo sleeping
sleeping
>sleeping some time
sent: #
got: lcl@yildun:~ $ #
>You are logged in, and there is a command prompt
sent: pwd
pwd: 
got: lcl@yildun:~ $ pwd
/home/lcl
>You are in the home folder
sent: uname -a
got: lcl@yildun:~ $ uname -a
Linux yildun 6.6.14-desktop-2.mga9 #1 SMP PREEMPT_DYNAMIC Tue Jan 30 15:48:16 UTC 2024 x86_64 GNU/Linux
>here runs linux
sent: echo sleeping
got: lcl@yildun:~ $ echo sleeping
>echo sleeping
sleeping
>sleeping some time
.....

That looks fine, so OK for 64-bits.

Whiteboard: (none) => MGA9-64-OK
CC: (none) => tarazed25

Comment 5 Len Lawrence 2024-02-16 18:29:51 CET
Created attachment 14387 [details]
Remote login script for socat test

Make executable before using.
Comment 6 Thomas Andrews 2024-02-16 18:43:42 CET
Validating.

CC: (none) => andrewsfarm, sysadmin-bugs
Keywords: (none) => validated_update

katnatek 2024-02-16 19:18:45 CET

Source RPM: socat,kubernetes,kwallet-pam => socat-2.0.0-0.b9.11.mga9

Comment 7 katnatek 2024-02-16 19:20:45 CET
Test star session with nheko, in this system nheko uses kwalletmanager+kwallet-pam to manage the login

No find issues
katnatek 2024-02-16 19:29:31 CET

Keywords: (none) => advisory

Comment 8 Mageia Robot 2024-02-17 01:56:14 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0057.html

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.