mirror of
https://bitbucket.org/shim_/docker-rtm.git
synced 2018-10-04 01:52:08 +02:00
Merge branch 'hideprocesses'
merge into master
This commit is contained in:
commit
61181e9b98
14
init.sh
14
init.sh
@ -36,3 +36,17 @@ else
|
|||||||
fi
|
fi
|
||||||
report_loop
|
report_loop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
function disable_command {
|
||||||
|
rm -f $1
|
||||||
|
echo -e "#!/bin/sh\n\n/bin/true" > $1
|
||||||
|
chmod +x $1
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ ! -z "$HIDE_PROCESSES" ]; then
|
||||||
|
disable_command "/bin/ps"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "$HIDE_CONNECTIONS" ]; then
|
||||||
|
disable_command "/bin/netstat"
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user