From e4aeeef8eb1470458632a11f17dcd5c1e7cecfe3 Mon Sep 17 00:00:00 2001 From: Hendrik Brueckner Date: Thu, 9 Jul 2026 12:05:27 +0200 Subject: [PATCH] iucvterm/ts-shell: Introduce config parameter to specify iucvconn binary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Introduce a configuration setting to allow administrators to specify path to the iucvconn binary as part of the ts-shell configuration. Reviewed-by: Jan Höppner Signed-off-by: Hendrik Brueckner Signed-off-by: Jan Höppner --- iucvterm/bin/ts-shell.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/iucvterm/bin/ts-shell.in b/iucvterm/bin/ts-shell.in index b5abdba4..d9ac7550 100755 --- a/iucvterm/bin/ts-shell.in +++ b/iucvterm/bin/ts-shell.in @@ -197,6 +197,7 @@ sub updateConfiguration(\%$) $cfg->{auditdir} = $value if $option =~ /^transcript-directory$/; $cfg->{auditfile} = $value if $option =~ /^transcript-systems$/; $cfg->{pager} = $value if $option =~ /^pager$/; + $cfg->{iucvconn} = $value if $option =~ /^iucvconn$/; # Validate pager to untaint for later use unless ($cfg->{pager} =~ m#^(/[\w./-]+)$#) { @@ -204,6 +205,13 @@ sub updateConfiguration(\%$) exit 6; } $cfg->{pager} = $1; + + # Validate iucvconn path to untaint for later use + unless ($cfg->{iucvconn} =~ m#^(/[\w./-]+)$#) { + log_error "Invalid iucvconn configuration"; + exit 7; + } + $cfg->{iucvconn} = $1; } # loadAuthorization() - Load system authorizations from file