ansible/files/scripts/confine-ssh.sh
Mathieu Bridon f60221e2aa Add the confine_ssh task
This is required by the drbackup stuff, which is required to migrate
Dist Git to ansible.
2014-08-26 18:28:27 +00:00

16 lines
195 B
Bash

#!/bin/sh
# Confine ssh commands
case "$SSH_ORIGINAL_COMMAND" in
*\&*)
echo "Rejected"
;;
*\;*)
echo "Rejected"
;;
rsync\ --server\ --sender*)
$SSH_ORIGINAL_COMMAND
;;
*)
echo "Rejected"
;;
esac