From 7aa420e5a5509793030350acb9c108eaef6c79ea Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 30 Jun 2024 07:35:25 +0200 Subject: T6527: add legacy Vyatta interpreter files still in use (cherry picked from commit 72a704d2e2b06bfedc4f1ee841814f983fc34baa) --- src/opt/vyatta/bin/restricted-shell | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 src/opt/vyatta/bin/restricted-shell (limited to 'src/opt/vyatta/bin/restricted-shell') diff --git a/src/opt/vyatta/bin/restricted-shell b/src/opt/vyatta/bin/restricted-shell new file mode 100755 index 000000000..ffcbb53b7 --- /dev/null +++ b/src/opt/vyatta/bin/restricted-shell @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ $# != 0 ]; then + echo "Remote command execution is not allowed for operator level users" + args=($@) + args_str=$(IFS=" " ; echo "${args[*]}") + logger "Operator level user $USER attempted remote command execution: $args_str" + exit 1 +fi + +exec vbash -- cgit v1.2.3