mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
iucvterm/ts-shell: Introduce config parameter to specify iucvconn binary
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 <hoeppner@linux.ibm.com> Signed-off-by: Hendrik Brueckner <brueckner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
c911419121
commit
e4aeeef8eb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user