mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Add the confine_ssh task
This is required by the drbackup stuff, which is required to migrate Dist Git to ansible.
This commit is contained in:
committed by
Kevin Fenzi
parent
9dd33b21dd
commit
f60221e2aa
16
files/scripts/confine-ssh.sh
Normal file
16
files/scripts/confine-ssh.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
# Confine ssh commands
|
||||
case "$SSH_ORIGINAL_COMMAND" in
|
||||
*\&*)
|
||||
echo "Rejected"
|
||||
;;
|
||||
*\;*)
|
||||
echo "Rejected"
|
||||
;;
|
||||
rsync\ --server\ --sender*)
|
||||
$SSH_ORIGINAL_COMMAND
|
||||
;;
|
||||
*)
|
||||
echo "Rejected"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user