many changes
added multiple tasks, files, configurations
This commit is contained in:
18
roles/base/files/system_setup/validate-rsync.sh
Executable file
18
roles/base/files/system_setup/validate-rsync.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
case "${SSH_ORIGINALCOMMAND}" in
|
||||
*\&*)
|
||||
echo "Rejected 1"
|
||||
;;
|
||||
*\;*)
|
||||
echo "Rejected 2"
|
||||
;;
|
||||
rsync*)
|
||||
${SSH_ORIGINAL_COMMAND} # no quoting here!
|
||||
;;
|
||||
*true*)
|
||||
echo "${SSH_ORIGINAL_COMMAND}"
|
||||
;;
|
||||
*)
|
||||
echo "Rejected 3"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user