allow adminSudo plugin to read from stdin

add expects_stdin to the execute call so an admin will be able to replay session from another account
This commit is contained in:
snk33 2020-11-13 18:35:40 +01:00 committed by GitHub
parent a0ce5947f2
commit 7685114cfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,6 @@ OVH::Bastion::syslogFormatted(
osh_warn("ADMIN SUDO: $self, you'll now impersonate $sudoAs, this has been logged.");
$fnret = OVH::Bastion::execute(cmd => \@cmd, noisy_stdout => 1, noisy_stderr => 1);
$fnret = OVH::Bastion::execute(cmd => \@cmd, noisy_stdout => 1, noisy_stderr => 1, expects_stdin => 1);
osh_exit $fnret;